PHP warnings are being displayed on my WordPress site

Faulty plugins or themes can cause PHP warnings like this to appear on your WordPress site, and affect its appearance.

Keep in mind!

While this guide will show you how to hide the problem, to ensure your site is fully functional you should contact the plugin developer for assistance.

Method 1: cPanel MultiPHP INI Editor

  1. Log into your cPanel dashboard

  2. Locate and click MultiPHP INI Editor

  3. Select your domain from the dropdown

  4. Find the display_errors setting

  5. Change the toggle from On to Off

  6. Click Apply

Method 2: php.ini File

If you have file access to your hosting account:

  1. Navigate to your website’s root directory

  2. Create or edit the php.ini file

  3. Add the following line:

    display_errors = Off
  4. Save the file

Method 3: wp-config.php File

As a final option, you can modify your WordPress configuration:

  1. Open your wp-config.php file

  2. Locate the line /* That's all, stop editing! */

  3. Add this line just above it:

    ini_set('display_errors', 0);
  4. Save the file

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *