Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

hitower

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

1,704 profile views

hitower's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. ыыы..... сначала собирался взять модуль без отложенной оплаты - он пашет под 2.1 в последний момент передумал и взял этот - думал он тоже пашет под 2.1. А он только под старую версию ((((((((((( а я уже оплатил только что! что мне делать? рву волосы себе не скажу где....
  2. Да, обнаружил IP хостера в черном списке. Но на том же IP сотни сайтов. Мой магазин только начинает работу и в принципе не мог создавать высокую нагрузку на посткальк. А нельзя ли как-то обрабатывать эту ошибку, выдавая сообщение и не доводя сервер до перезагрузки? Почему такие катастрофические последствия?
  3. Здравствуйте. Некоторое время назад после нажатия "Оформить заказ" Mysql-сервер стал уходить на перезагрузку. Если отключаю ваш модуль - всё ОК. Поставил новую версию (поверх старой) - не помогает. Из логов: 2015-11-23 17:37:00 - PHP Notice: mysql_query(): send of 57 bytes failed with errno=32 Broken pipe in /home/v/blabla/public_html/system/database/mysql.php on line 22 2015-11-23 17:37:00 - PHP Warning: Error while sending QUERY packet. PID=13359 in /home/v/blabla/public_html/system/database/mysql.php on line 22 2015-11-23 17:37:00 - PHP Notice: Error: MySQL server has gone away<br />Error No: 2006<br />SELECT * FROM ocvin_extension WHERE `type` = 'total' in /home/v/blabla/public_html/system/database/mysql.php on line 50 Код mysql.php: <?php final class MySQL { private $link; public function __construct($hostname, $username, $password, $database) { if (!$this->link = mysql_connect($hostname, $username, $password)) { trigger_error('Error: Could not make a database link using ' . $username . '@' . $hostname); } if (!mysql_select_db($database, $this->link)) { trigger_error('Error: Could not connect to database ' . $database); } mysql_query("SET NAMES 'utf8'", $this->link); mysql_query("SET CHARACTER SET utf8", $this->link); mysql_query("SET CHARACTER_SET_CONNECTION=utf8", $this->link); mysql_query("SET SQL_MODE = ''", $this->link); } public function query($sql) { if ($this->link) { $resource = mysql_query($sql, $this->link); if ($resource) { if (is_resource($resource)) { $i = 0; $data = array(); while ($result = mysql_fetch_assoc($resource)) { $data[$i] = $result; $i++; } mysql_free_result($resource); $query = new stdClass(); $query->row = isset($data[0]) ? $data[0] : array(); $query->rows = $data; $query->num_rows = $i; unset($data); return $query; } else { return true; } } else { trigger_error('Error: ' . mysql_error($this->link) . '<br />Error No: ' . mysql_errno($this->link) . '<br />' . $sql); exit(); } } } public function escape($value) { if ($this->link) { return mysql_real_escape_string($value, $this->link); } } public function countAffected() { if ($this->link) { return mysql_affected_rows($this->link); } } public function getLastId() { if ($this->link) { return mysql_insert_id($this->link); } } public function __destruct() { if ($this->link) { mysql_close($this->link); } } } ?>
  4. нет конечно жеЯ так подразумевал - если указывается имя шаблона, то он явно не мой Совершенно не собирался пользоваться чужой славой Да и просто было бы глупо рассчитывать на присвоение себе авторства темы на столь профильном сайте Авторство в том что магазин с данным контентом реализован на на данном домене Видимо в инструкции по созданию темы в данной ветке стоит указать что имеется в виду под авторством
  5. Вот, под увлечение своей благоверной слепил. http://versalia.ru Жена варит - магазин продает ) ocstore 1.5.3.1 тема chocolate автор я неделя как открыл - еще есть над чем работать буду благодарен за замечания
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.