NethServer Version: 7.9.2009
Module: Stephdl Repo (remi) enabled for all Webpages php-fpm 73
my server space constantly runs full due to warning. There is a faulty PHP coding with in my wordpress page, which is running fine.The page runs under PHP 73 (remi).
[root@nethserver ~]# tail -f /var/opt/rh/rh-php73/log/php-fpm/error-avvp.de.log [22-Jul-2021 09:59:50 UTC] PHP Warning: next() expects parameter 1 to be array, null given in /var/lib/nethserver/vhost/avvp.de/wp-includes/class-wp-hook.php on line 308 [22-Jul-2021 09:59:50 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /var/lib/nethserver/vhost/avvp.de/wp-includes/class-wp-hook.php on line 291 [22-Jul-2021 09:59:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/lib/nethserver/vhost/avvp.de/wp-includes/class-wp-hook.php on line 294
This slows down the server. This fills up the diskspace (dozends of GB within minutes!) until the server is not usable any more. I have to manually truncate the file:
[root@nethserver ~]# truncate --size 500KB /var/opt/rh/rh-php73/log/php-fpm/*.log
So far so good (bad). Until the problem with the code of the page, wordpress-plugin or whatever is fixed, I want to alter the log level in php-fpm.conf
[root@nethserver ~]# vim /etc/opt/rh/rh-php73/php-fpm.conf +44 ; Log level ; Possible Values: alert, error, warning, notice, debug ; Default Value: notice log_level = error systemctl restart php73-php-fpm service httpd restart
But this has no effect. The warnings are still there. Am I missing something? I know the problem sits between the screen and the back of my chair
Thank you in advance.