[Mon Apr 16 06:25:28.235193 2018] [mpm_prefork:notice] [pid 886] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Mon Apr 16 06:25:28.235353 2018] [core:notice] [pid 886] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 16 06:26:01.302739 2018] [:error] [pid 666] [client 127.0.0.1:41915] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; htmlMimeMail has a deprecated constructor in /var/www/lib/htmlMimeMail.class.php on line 23
[Mon Apr 16 06:26:01.303504 2018] [:error] [pid 666] [client 127.0.0.1:41915] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Mail_mimePart has a deprecated constructor in /var/www/lib/htmlMimeMail.class.php on line 873
[Mon Apr 16 06:26:01.368826 2018] [:error] [pid 666] [client 127.0.0.1:41915] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; application has a deprecated constructor in /var/www/modules/application.class.php on line 11
[Mon Apr 16 11:00:02.529228 2018] [:error] [pid 5461] [client 127.0.0.1:47400] PHP Warning: Invalid argument supplied for foreach() in /var/www/modules/app_openweather/get_weather.inc.php on line 131
[Mon Apr 16 11:00:03.026587 2018] [:error] [pid 5461] [client 127.0.0.1:47400] PHP Warning: Invalid argument supplied for foreach() in /var/www/modules/app_openweather/get_weather.inc.php on line 131
[Mon Apr 16 11:00:03.476621 2018] [:error] [pid 5461] [client 127.0.0.1:47400] PHP Warning: Invalid argument supplied for foreach() in /var/www/modules/app_openweather/get_weather.inc.php on line 131
[Mon Apr 16 11:00:04.071698 2018] [:error] [pid 5461] [client 127.0.0.1:47400] PHP Warning: Invalid argument supplied for foreach() in /var/www/modules/app_openweather/get_weather.inc.php on line 131
[Mon Apr 16 11:00:04.550223 2018] [:error] [pid 5461] [client 127.0.0.1:47400] PHP Warning: Invalid argument supplied for foreach() in /var/www/modules/app_openweather/get_weather.inc.php on line 131
[Mon Apr 16 17:17:33.118581 2018] [mpm_prefork:notice] [pid 819] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Mon Apr 16 17:17:33.148912 2018] [core:notice] [pid 819] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 16 20:26:36.619207 2018] [:error] [pid 847] [client 127.0.0.1:39624] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; htmlMimeMail has a deprecated constructor in /var/www/lib/htmlMimeMail.class.php on line 23
[Mon Apr 16 20:26:36.914947 2018] [:error] [pid 847] [client 127.0.0.1:39624] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Mail_mimePart has a deprecated constructor in /var/www/lib/htmlMimeMail.class.php on line 873
[Mon Apr 16 20:26:37.061134 2018] [:error] [pid 847] [client 127.0.0.1:39624] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; application has a deprecated constructor in /var/www/modules/application.class.php on line 11
Судя по этой ошибке - PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; htmlMimeMail has a deprecated constructor in /var/www/lib/htmlMimeMail.class.php on line 23
ну и всем последующим задам вопрос обновлялись давно ?
Если же нет то смотрите для начала ошибки которые надо подправить в упомянутых модулях..
Возможно из них падает апач
tarasfrompir1 писал(а): Ср апр 18, 2018 5:27 pm
Судя по этой ошибке - PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; htmlMimeMail has a deprecated constructor in /var/www/lib/htmlMimeMail.class.php on line 23
ну и всем последующим задам вопрос обновлялись давно ?
Если же нет то смотрите для начала ошибки которые надо подправить в упомянутых модулях..
Возможно из них падает апач
Последний раз обновлялся 2018-04-18 01:17
Простите за тупость а как их поправить???? не подскажите или на статейку не отправите?
Открывай строку 23 файла htmlMimeMail.class.php и смотри что там написано и что за ошибка может быть
А там написано - > class htmlMimeMail
и смотрим дальше а там строка 103 -> function htmlMimeMail()
а нужно исправить на -> __construct()
Потому что в пхп 7 нельзя называть и класс и функцию одинаково...
71Gavrik71 писал(а): Ср апр 18, 2018 4:09 pm
[Mon Apr 16 06:26:01.302739 2018] [:error] [pid 666] [client 127.0.0.1:41915] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
Конкретно эта ошибка говорит о том, что в коде использован метод, признанный устаревшим и который не будет поддерживаться в следующих версиях php. Т.е. это не критичная ошибка
71Gavrik71 писал(а): Ср апр 18, 2018 4:09 pm
PHP Warning: Invalid argument supplied for foreach() in
Это также не ошибка, а предупреждение, что в цикле foreach используется не верный тип переменной (скорее всего нет проверки, что массив не пустой)
Таким образом в приведенном логе нет критичных ошибок
tarasfrompir1 писал(а): Ср апр 18, 2018 5:55 pm
Открывай строку 23 файла htmlMimeMail.class.php и смотри что там написано и что за ошибка может быть
А там написано - > class htmlMimeMail
и смотрим дальше а там строка 103 -> function htmlMimeMail()
а нужно исправить на -> __construct()
Потому что в пхп 7 нельзя называть и класс и функцию одинаково...
71Gavrik71 писал(а): Ср апр 18, 2018 4:09 pm
[Mon Apr 16 06:26:01.302739 2018] [:error] [pid 666] [client 127.0.0.1:41915] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
Конкретно эта ошибка говорит о том, что в коде использован метод, признанный устаревшим и который не будет поддерживаться в следующих версиях php. Т.е. это не критичная ошибка
71Gavrik71 писал(а): Ср апр 18, 2018 4:09 pm
PHP Warning: Invalid argument supplied for foreach() in
Это также не ошибка, а предупреждение, что в цикле foreach используется не верный тип переменной (скорее всего нет проверки, что массив не пустой)
Таким образом в приведенном логе нет критичных ошибок
А подскажите из за чего тогда все отваливается где хоть капать?)
Думаю стоит посмотреть настройки модуля mpm_prefork, так как на него Апач и ругается. Сам начинающий *nix пользователь. С такой проблемой не сталкивался, поэтому решения у меня нет. Вот тут (https://rtfm.co.ua/apache-mpm-worker-prefork-ili-event/) описание модуля mpm_prefork. Надеюсь, поможет