Control Web Panel

WebPanel => Information => Topic started by: adamjedgar on April 11, 2019, 09:35:34 PM

Title: PHP Warning: Division by zero... while reading response header from upstream
Post by: adamjedgar on April 11, 2019, 09:35:34 PM
I am getting this warning/error repeated over and over in my server logs?

Is this fixable in CWP? its filling my logs up with complete rubbish that i dont want or need to see!

[error] 15790#0: *2447 FastCGI sent in stderr: "PHP message: PHP Warning:  Division by zero in /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_gauges.php on line 0" while reading response header from upstream, client: 120.146.145.157, server: localhost, request: "POST /cwp_856158d2310f86179e3b7627e6f940a9/admin/loader_ajax.php?ajax=gauges HTTP/1.1"
Title: Re: PHP Warning: Division by zero... while reading response header from upstream
Post by: Igor S. on April 12, 2019, 10:55:26 AM
Hi, include some details. What exactly are you doing when the error in log?
Title: Re: PHP Warning: Division by zero... while reading response header from upstream
Post by: studio4host on April 12, 2019, 12:13:43 PM
you can ignore it since this is an ajax request for data on the dashboard
Title: Re: PHP Warning: Division by zero... while reading response header from upstream
Post by: adamjedgar on April 12, 2019, 06:14:02 PM
In some of the Google searches, this error seems to be related to an incorrect line of php code.

This would suggest the problem is in CWP itself?
Title: Re: PHP Warning: Division by zero... while reading response header from upstream
Post by: Igor S. on April 18, 2019, 05:47:24 AM
Hi, as studio4host has said: "you can ignore" it  ;)