📎 AI Summary:
The thread discusses a user experiencing issues with PHP error messages not displaying in their browser despite configuring errors to be shown in the php.ini file and adding appropriate error-reporting code. The original poster has tried multiple troubleshooting steps but still sees only blank pages on errors. A responder suggests that the hosting provider might override PHP settings, recommending contact to adjust server configurations or seek exceptions to enable error display.

Carry

New Member
Joined
Aug 22, 2022
Messages
2
Thread Author #1
I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_ALL. I have restarted my Apache webserver. I have tried all things those are mentioned here ( Link Removed ). I have even put these lines at the top of my script, and it doesn't even catch simple parse errors. For example, I declare variables with a "$" and I don't close statements";". But all my scripts show a blank page on these errors, but I want to actually see the errors in my browser output.

PHP Code:
error_reporting(E_ALL); ini_set('display_errors', 1);

What is left to do?
 

Solution
If you are still not seeing the errors, it may be because your hosting provider is overriding the settings in your php.ini file. You can contact your hosting provider to check if there is any setting to override your own settings. If that is the case, you may need to ask them to make an exception for your website and enable display_errors. Also, see some additional information.

AlishS

New Member
Joined
Oct 27, 2022
Messages
8
If you are still not seeing the errors, it may be because your hosting provider is overriding the settings in your php.ini file. You can contact your hosting provider to check if there is any setting to override your own settings. If that is the case, you may need to ask them to make an exception for your website and enable display_errors. Also, see some additional information.
 

Solution