WordPress Reference
-
General WordPress
- How to change the WordPress sender e-mail address without a plugin?
- How to completely disable WordPress comments
- How to create a WordPress menu logout link that bypasses the "are you sure you want to log out" message
- How to get rid of the “Sorry, this file type is not permitted for security reasons” when uploading to WordPress
- How to get rid of the error message "Too many failed login attempts. Please try again in..." if the WP Limit Login Attempts plugin is not installed
- How to hide PHP Warnings in WordPress
- How to redirect all the pages from an old domain to the homepage of a new domain
- MAMP: How to get rid of the error message "The link you followed has expired" when attempting to upload a WordPress theme
-
WordPress Themes
-
WordPress Plugins
-
- BuddyPress: How to hide "This field can be seen by"
- BuddyPress: How to hide profile Export Data link
- BuddyPress: How to hide the WordPress top admin bar for Logged Out users
- BuddyPress: How to remove the setting Profile Visibility
- How to change the default BuddyPress profile landing tab
- How to disable BuddyPress Public Message Button
- How to remove the BuddyPress profile ‘last active’ status
- Why create a BuddyPress bp-custom.php file?
-
- Directories Pro Demo
- Directories Pro documentation
- Directories Pro Documentation - Reviews
- Directories Pro: How to create a directories homepage like the Demo
- Directories Pro: How to put elements like Opening Hours, etc. in the sidebar like the demo
- Directories Pro: How to use views to display directory content
-
- Articles coming soon
-
Elegant Themes Products
< All Topics
Print
How to hide PHP Warnings in WordPress
Posted
Updated
Bynetpressionist
After I moved one of my sites from the local host MAMP location to the live domain, I started receiving a couple of php warnings for a plugin.
My wp-config.php file already had the line: define(‘WP_DEBUG’, false);
but I received the warnings anyway.
The following resolved the problem for me:
In wp-config.php, replace:
define('WP_DEBUG', false);
with:
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
I found this solution at the following url:
latest Articles
Table of Contents