×
Внимание, мошенник-работодатель (10 авг 2017)

Вниманию программистов Санкт-Петербурга, на SuperJob-е вновь активизировался Семен Григорьевич Шумейко..

Вопрос Логи на сервере

Больше
4 года 1 мес. назад - 4 года 1 мес. назад #1 от Sergey84
Sergey84 создал эту тему: Логи на сервере
Всем привет!
Мой сайт находится на VPS, стал замечать, что очень быстро заполняется файл логов с ошибками. Включил ротацию с интервалом в час. Это, конечно, помогает от переполнения диска, но хотелось бы узнать, что вызывает такое кол-во ошибок. Я не профи в этом вопросе, могу предположить, что это связано с версиями php. На серваке стоит php 5.4., а у меня джумла сделана на 5.3. Я спрашивал хостера, они посоветовали откатиться до 5.2, т.к. моя cms старая (1.5.26). Они правы? И вот еще кусок из файла error.log: к сожалению я ничего не понимаю, прошу совета, помочь.
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::getPlugin() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 147
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::_load() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 41
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JRegistryFormat::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/registry.php on line 373
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/format.php on line 45
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getLanguage() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/plugin.php on line 113
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JRegistryFormat::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/registry.php on line 373
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/format.php on line 45
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::_import() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 97
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JLoader::import() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/loader.php on line 186
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JDispatcher::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 140
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::getPlugin() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 147
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::_load() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 41
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JRegistryFormat::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/registry.php on line 373
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/format.php on line 45
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getLanguage() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/plugin.php on line 113
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JRegistryFormat::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/registry.php on line 373
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/format.php on line 45
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::_import() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 97
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JLoader::import() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/loader.php on line 186
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JDispatcher::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 140
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::getPlugin() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 147
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JPluginHelper::_load() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/helper.php on line 41
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JRegistryFormat::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/registry.php on line 373
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/format.php on line 45
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getLanguage() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/plugin/plugin.php on line 113
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JRegistryFormat::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/registry.php on line 373
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFilterInput::clean() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/registry/format.php on line 45
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getApplication() should not be called statically in /home/h44102/data/www/livinggames.ru/administrator/components/com_kunena/libraries/route/route.php on line 269
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getApplication() should not be called statically in /home/h44102/data/www/livinggames.ru/administrator/components/com_kunena/libraries/route/route.php on line 274
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JLoader::import() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/loader.php on line 186
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JMenu::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/application/application.php on line 720
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JError::isError() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/application/application.php on line 721
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getApplication() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/includes/router.php on line 90
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/application/application.php on line 394
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/application/application.php on line 394
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JURI::base() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/includes/router.php on line 109
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::setBody() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/plugins/system/sef.php on line 104
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getConfig() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/application/application.php on line 394
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::toString() should not be called statically in /home/h44102/data/www/livinggames.ru/index.php on line 88
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::getBody() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 190
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::allowCache() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 197
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::setHeader() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 199
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::setHeader() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 200
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::setHeader() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 201
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::setHeader() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 202
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::setHeader() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 203
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JResponse::sendHeaders() should not be called statically in /home/h44102/data/www/livinggames.ru/libraries/joomla/environment/response.php on line 206
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/session/storage/database.php on line 84
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JTable::getInstance() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/session/storage/database.php on line 89
[Thu Jul 11 08:43:13 2013] [error] [client 66.249.72.125] PHP Strict Standards:  Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context in /home/h44102/data/www/livinggames.ru/libraries/joomla/database/table.php on line 112

Алексей, если я не в тему написал, прошу перкинуть в нужный раздел это сообщение.
Последнее редактирование: 4 года 1 мес. назад от Sergey84.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Больше
4 года 1 мес. назад - 4 года 1 мес. назад #2 от Aleksej
Aleksej ответил в теме Логи на сервере
Такого рода проблемы известны, решение несложно.
Прежде всего необходимо обратить внимание на технические рекомендации, описанные разработчиком в контексте той либо иной версии движка:

Requirements for Joomla 1.5, php: min 4.3.10  max 5.2 +
Requirements for Joomla 3.x, php: min 5.3.1 +  max 5.3.1 +


Соответственно, попробуй последовать этому совету:

Решается эта неприятность следующим образом: Необходимо изменить два параметра в файле конфигурации php.ini, а именно error_reporting и display_errors в разделе Error handling and logging.
Т.е., меняем

error_reporting = E_ALL | E_STRICT
display_errors = On

на
error_reporting = E_ALL & ~E_NOTICE
display_errors = Off

После чего совсем нелишне перезагрузить сервак.


Либо действительно откатываемся на php 5.2.
Последнее редактирование: 4 года 1 мес. назад от Aleksej.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Больше
4 года 1 мес. назад #3 от tekumze
tekumze ответил в теме Логи на сервере

Aleksej пишет: Либо действительно откатываемся на php 5.2.


имхо нелучший совет, я бы обновил лучше джумлу...

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Больше
4 года 1 мес. назад #4 от Sergey84
Sergey84 ответил в теме Логи на сервере
Алексей, спасибо!

Но у меня в корневом файле php.ini таких строк вообще не было. Добавил их в этот файл, посмотрю, как ошибки себя вести будут.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Больше
4 года 1 мес. назад #5 от serge
serge ответил в теме Логи на сервере

Sergey84 пишет: Но у меня в корневом файле php.ini таких строк вообще не было.


ini-файлов может быть несколько. Запустите на серваке команду
phpinfo()

А я смогу! - А поглядим! - А я упрямый!

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.