PHP Error A non-numeric value encountered ethos.php

Hi,
our server error log is full with this error:
[Sat Feb 02 02:36:55.220500 2019] [proxy_fcgi:error] [pid 7150:tid 140075314571008] [client 116...*:35854] AH01071: Got error ‘PHP message: PHP Warning: A non-numeric value encountered in PATH /wp-content/themes/x/framework/legacy/cranium/headers/output/ethos.php on line 213\n’,

Any idea?
Thank you,
Matt

Hi Matt,

This issue occurs might be the outdated of PHP version. Try upgrading your PHP to version 7.2 or above.

Can also you confirm that your WordPress core is up-to-date?

Pleas check the requirements of WordPress here:

Let us know how it goes!

Thank you,
but the server + domain is already on 7.2 and WP is also on 5.03,
thanks,
Matt

Hi Matt,

The warning should have no effect, but we’ll continue checking it. For now, you can let it or disable the error logging for warning. I assume it’s your host logs since based on the warning format.

Thanks!

Hi Rad,
the weird thing is, there are several X Installations on that server. This is the only domain throwing this error. But the quantity of errors is very high, the log is literally full with it - I would say with every request.
Right now we are troubleshooting a different issue, hence we found that one too.
In case anyone has a fix, great.
All the best,
Matt

Hi Matt,

It’s not an error, but just warning. It could happen anytime depending on existing setup. I think you can configure the error reporting from your host and disable all warnings. Example https://zemez.io/wordpress/support/how-to/disable-php-warnings-notices/

Thanks!

Thank you Rad,
all the best,
Matt

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.