by
KK » Fri Apr 07, 2023 3:13 pm
Not all hosts allow that .htaccess method so let us concentrate on php.ini.
Perhaps you are not targeting the correct php,ini (a very common mistake)?
To know the exact location of the php.ini being used by your server, please create a new .php file in your site root (say named test.php) and place the following in it -
- Code: Select all
<?php
phpinfo();
?>
Access the file in your browser and you'll see loads of info about your PHP configuration.
Find the info about php.ini in it and also the display settings for errors.
- phpinfo-locate-php-ini.png (30.62 KiB) Viewed 4384 times
The listing will also show you the 'display_errors' setting we are targeting. Find what value it shows.
If it is on, make the changes to the indicated php.ini file and then run test.php again to make sure the changes get reflected in the error settings.
Make sure to delete the test.php file once you are done.
Hope this helps.
P.S. As an additional method, you may try placing the following at the very end of your couch/config.php -
- Code: Select all
ini_set( "display_errors", "Off" );
Please check if this works.