Hide PHP Warnings And Notices In WordPress

Hide PHP Warnings and Notices in WordPress

Hide PHP Warnings and Notices in WordPress

From time to time a user comes to me and says “I see some PHP notices and warnings on my page”.

Most of the time these are nothing to worry about (though the plugin/theme developer should know about these so that they may fix them in a future release). PHP warnings and notices are nothing to worry about on a production site most of the time.
Some of these can even be generated because the developer has to keep compatibility with older versions of WordPress as well as older PHP versions.

The solution: Hide PHP Warnings and Notices in WordPress

See how to hide/disable wordpress Fatal error

If you simply set WP_DEBUG to false in your wp-config.php file you should be fine. These don’t affect your site in any way.

However, the problem is that some times the above does not work.
That can happen most times on cheap shared hosts that force displaying PHP warnings and notices.
In that case, you can replace this line from your wp-config.php file:

define('WP_DEBUG', false);

with this:

ini_set('log_errors','On');
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

I hope that helps someone out there! Checkout How to deactivate plugin & Solve php Warning error.

If you can’t solve the issue. you can contact our Technical Team . Our technical team contact to with you next 30 minutes.

Hide PHP Warnings and Notices in WordPress, hide PHP Warnings, php warning disable php, warning disable, php warning in wordpress, Hide PHP Warnings and Notices in WordPress

Leave a Reply

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

Subscribe
SUBSCRIBE NOW

Coupon : happynewyear

60% OFF

Stay updated with all latest updates,upcoming plugins & much more.
WordPress Themes
Search