Mysqli ошибки
Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445
Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 621
Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445
Notice: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 151
Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445
Comments (22)
-
-
- changed version to 2.5 Release
-
assigned issue to
-
На любой странице появляется, даже на индексе
-
Еще есть проблема с баном пользователей после регистрации. Причина бана:"Закрыта Регистрация"
-
Еще не могу указать ссылку на клиент, после её указания пишет 404 Not Found
-
Версия PHP какая?
-
5.6
-
http://imgur.com/a/U2TfE А вот PHP расширения, которые сейчас активны.
-
Лог ошибок где?
-
[25-Jan-2017 05:44:59 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:44:59 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:44:59 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 621 [25-Jan-2017 05:44:59 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:44:59 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 151 [25-Jan-2017 05:44:59 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:00 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:45:00 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 621 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 151 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:45:02 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:17 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:45:17 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:45:17 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:45:17 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:31 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:47:31 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:32 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:47:32 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:32 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:47:32 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:33 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:47:33 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 621 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' in /home/ih267582/public_html/minecraft/instruments/catalog.class.php on line 151 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Notice: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' in /home/ih267582/public_html/minecraft/system.php on line 270 [25-Jan-2017 05:47:46 Pacific/Wake] PHP Warning: mysqli_fetch_array() expects parameter 2 to be long, string given in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 445 [24-Jan-2017 20:54:20 Europe/Moscow] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 343 [24-Jan-2017 20:55:11 Europe/Moscow] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 343 [25-Jan-2017 05:55:39 Pacific/Wake] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 343 [25-Jan-2017 05:55:39 Pacific/Wake] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 343 [25-Jan-2017 05:55:47 Pacific/Wake] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 343 [25-Jan-2017 05:55:59 Pacific/Wake] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/ih267582/public_html/minecraft/instruments/base.class.php on line 343
-
Я про лог ошибок движка. И почему ты установил движок с использованием mysql а не mysqli?
-
Я вернулся домой, где находятся логи?
-
/log.txt
-
К слову, проблема как раз в том, что механизм подключения используется устаревший. Ошибки исчезнут на версии PHP 5.3 и более ранних. Либо есть вполне удобное решение использовать механизм подключения MySQLi, который безопаснее и не устарел.
-
А можно ли поставить myqli без переустановки всей CMS?
-
Да, в конфиге
-
И еще, я файла log.txt не нашел
-
Насчет mysqli: эту строку: 'db_method' => 'mysql' Заменить на это: 'db_method' => 'mysqli' ?
-
Именно ее. И лог по умолчанию отключен, его надо включить чтобы он начал писаться
-
Эта строка в конфиге отвечает за включение записи? 'log' => true,
-
Да.
-
- changed status to resolved
- Log in to comment
В какой момент появились ошибки? Что в логе пишется?