PHP 8 issue: Fatal error when error_reporting is disabled
-
For security reasons, I’ve always disabled the function “error_reporting” in php.ini unless I’m debugging. Disabling this function works great in php 7.4 – WordPress doesn’t output error messages to the error log, it just outputs a message to the error log that error_reporting is disabled for security reasons.
But in php 8.0, I’m getting this error:
PHP Fatal error: Uncaught Error: Call to undefined function error_reporting() in … /wp-load.php:24
In php 7.4, it wouldn’t be a fatal error. It would just say that error_reporting is disabled for security reasons.
Any suggestions? Thank you
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP 8 issue: Fatal error when error_reporting is disabled’ is closed to new replies.