debug
Добавлено: 26 июн 2020, 21:20
С переходом на новую версию PHP на форуме PHPBB стали появляться сообщения:
Проверено в версиях:
PHPBB 3.0
PHPBB 3.2
PHPBB 3.3
Первым делом выключаем debug в файле config.php:
Не помогло.
Нашёл дополнительные настройки в файле /includes/startup.php строка:
И меняем её на:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 693: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/language/language.php on line 313: vsprintf(): Too few arguments
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4306: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3037
Проверено в версиях:
PHPBB 3.0
PHPBB 3.2
PHPBB 3.3
Первым делом выключаем debug в файле config.php:
Код: Выделить всё
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
Нашёл дополнительные настройки в файле /includes/startup.php строка:
Код: Выделить всё
$level = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
Код: Выделить всё
$level = 0;