How to Disable WordPress PHP Error Messages

1. Open the -config. file in wordpress. 

2. We strongly suggest you create a backup of this file before making any changes.  

3. You have various methods available for accessing the wp-config.php file of WordPress. A lot of use FileZilla.

4. your website by clicking the “public_html” folder in the directory.

5. Select the wp-config.php file and click, “Edit.”  

6. Scroll down and find the line that has this :

define(‘WP_DEBUG’, false);

You may see “true” instead of false. Either way, you’re looking for the “WP_DEBUG” portion of the wp-config.php file.

7. Replace the line with the following code:

ini_set(‘error_reporting’, E_ALL );
define(‘WP_DEBUG’, false);
define(‘WP_DEBUG_DISPLAY’, false);

8. Click the “Save Changes” button in the top right.

Once the file is saved, this will disable the PHP warnings in WordPress on the front-end website.


Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!