How to Turn Off PHP Errors in WordPress | php.ini error reporting off | hide php errors wordpress

Published: 05 November 2023
on channel: Web Wonder Network
80
4

So, you want to turn off PHP errors in your WordPress website? This is a common requirement among WordPress users and it's actually quite easy to do. Let me guide you through it with a step-by-step process. Remember, this is a beginner-friendly guide, so don't worry if you're not tech-savvy!


Step 1:
The first thing you need to do is access the File Manager of your website. This is usually located in your hosting account's control panel.


Step 2:
Once you're in the File Manager, you need to locate the wp-config.php file. This file is crucial as it contains the configuration settings for your WordPress site.


Step 3:
After finding the wp-config.php file, you need to edit it. But before you proceed, it's always a good idea to create a backup of this file. This way, if anything goes wrong, you can revert to the original version.


Step 4:
In the wp-config.php file, look for the line that says WP_DEBUG. If you find this line, set its value to false. This should disable all PHP error messages. If this line does not exist, you can add it at the bottom of the file. Here's what the line should look like:


define( 'WP_DEBUG', false );

Step5: if its not working then paste this code:
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);


On this page of the site you can watch the video online How to Turn Off PHP Errors in WordPress | php.ini error reporting off | hide php errors wordpress with a duration of hours minute second in good quality, which was uploaded by the user Web Wonder Network 05 November 2023, share the link with friends and acquaintances, this video has already been watched 80 times on youtube and it was liked by 4 viewers. Enjoy your viewing!