PHP logs
Hello
We have AlmaLinux v9.4.0 STANDARD standard with WHM and cPanel. In WHM on "System PHP-FPM Settings" page we have Error Reporting = "E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING & ~E_STRICT", but server still saving PHP warning logs in /home/account/logs/domain_com.php.error.log:
[24-Sep-2024 16:19:19 UTC] PHP Warning: Constant OMS_LIVE already defined in ...../wp-content/themes/Divi_child/page-template-login.php on line 13
Server support team say that this is WordPress setting, but couldn't find anything in WP config file. Any idea how to stop server save PHP warring logs?
-
Hey there! I wouldn't say it's a WordPress setting, so much as it may be an issue with that particular theme you're using. Since it's referencing a particular line inside the theme file, that page-template-login.php file is definitely the issue. Do you see that OMS_LIVE variable declared multiple times in that file? If so, it might be best to reach out to the provider of that theme so they can fix that issue in a future update.
0 -
Probably I did write my question correct. My problem is that server is saving
PHP Warning:
logs, but server configuration is Error Reporting = "E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING & ~E_STRICT". This Error Reporting value should exclude PHP notice, deprecated, warring and strict logs. The problem is that this configuration works for everything except PHP warning logs, server still saves warning errors.
0 -
Can you create a PHP Info page on your domain and check the local vs master value to see if that is being read properly? https://support.cpanel.net/hc/en-us/articles/360052760494-How-to-use-a-PHPInfo-file-for-troubleshooting-PHP-issues
0 -
ok, thank you, will try
0
Please sign in to leave a comment.
Comments
4 comments