- November 16, 2016
- Posted by: Sadman Sakib
- Category: Uncategorized
PHP errors notice display in WordPress is very common issue. Sometimes when you create your website with WordPress, you may not want to display php errors. A WordPress web developers always try to fix these kind of errors. If you use any premium theme, you may not worry about it because developers always try to fix these kind of issues. Many of these errors comes after upgrading New WordPress version.
Don’t worry, you can hide PHP errors message in WordPress by editing WordPress configuration(wp-config.php) file.
WP_DEBUG: Generally WP_DEBUG used for developers to trigger the “debug” mode. If you set WP_DEBUG to false in your wp-config.php file, may be your problem will be solved.
Sometimes above method does not work. That can be happen most of times on cheap share hosts force displaying PHP errors. Don’t worry follow below method.
Replace WP_DEBUG: If you are failed on above method, just replace following line from wp-config.php file.
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);
That’s all. We hope this article helped you learn how to hide PHP errors in WordPress.