Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: cata77 on January 14, 2020, 09:28:21 PM

Title: Lots of php warnings
Post by: cata77 on January 14, 2020, 09:28:21 PM
Hello,
Into the
/usr/local/cwp/php71/var/log/php-fpm.log there are lots of PHP Warning:
[14-Jan-2020 22:56:31] WARNING: [pool cwpsrv] child 31520 said into stderr: "NOTICE: PHP message: PHP Warning:  main(): Failed opening '../../../../resources/admin/include/version.php' for inclusion (include_path='.:/usr/local/cwp/php71/lib/php') in /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_dashboard.php on line 0"
[14-Jan-2020 22:56:31] WARNING: [pool cwpsrv] child 31522 said into stderr: "sed: couldn't write 79 items to stdout: Broken pipe"
[14-Jan-2020 22:56:32] WARNING: [pool cwpsrv] child 31520 said into stderr: "NOTICE: PHP message: PHP Warning:  Division by zero in /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_dashboard.php on line 0"
[14-Jan-2020 22:56:32] WARNING: [pool cwpsrv] child 31534 said into stderr: "cat: /usr/local/cwp/.conf/quota_part.conf: No such file or directory"
[14-Jan-2020 22:56:34] WARNING: [pool cwpsrv] child 31523 said into stderr: "cat: /usr/local/cwp/.conf/quota_part.conf: No such file or directory"

This log file is increasing with ~8Mb every day.

Any suggestion how to solve this?
Thanks
Title: Re: Lots of php warnings
Post by: tster13 on February 01, 2020, 11:19:25 PM
Change warnings settings in PHP settings (PHP 7.1 obviously).

Or make cron and just delete this log periodically.
Title: Re: Lots of php warnings
Post by: cata77 on February 07, 2020, 10:50:32 AM
Hiding the warnings or making a cron for deleting them is not a solution. The expectation is to solve the issue. As a client that pay 2 CWPpro licenses I think is a normal request.
Title: Re: Lots of php warnings
Post by: Sandeep on February 07, 2020, 03:30:40 PM
hi, you can ignore this logs. All seems to normal