Title: Hide php error message
Last modified: August 19, 2016

---

# Hide php error message

 *  [khdown](https://wordpress.org/support/users/khdown/)
 * (@khdown)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/hide-php-error-message/)
 * Error messages are shown in my wordpress dashboard and I can’t hide them even
   I use
    **error_reporting(0); @ini_set(‘display_errors’, 0); in wp-config.php.
 * I place the code as below:
 * > <?php
   >  _error\_reporting(0); @ini\_set(‘display\_errors’, 0); /** * The base
   > configurations of the WordPress. * * This file has the following configurations:
   > MySQL settings, Table Prefix, * Secret Keys, WordPress Language, and ABSPATH.
   > You can find more information * by visiting {@link [http://codex.wordpress.org/Editing\_wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
   > Editing * wp-config.php} Codex page. You can get the MySQL settings from your
   > web host. * * This file is used by the wp-config.php creation script during
   > the * installation. You don’t have to use the web site, you can just copy this
   > file * to “wp-config.php” and fill in the values. * * [@package](https://wordpress.org/support/users/package/)
   > WordPress */
 * I wonder if there is a way to hide the php error message. Help.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [TheArtofBalance](https://wordpress.org/support/users/theartofbalance/)
 * (@theartofbalance)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hide-php-error-message/#post-1900225)
 * I’m having the same issue. OP have you found a solution?
 *  [TheArtofBalance](https://wordpress.org/support/users/theartofbalance/)
 * (@theartofbalance)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/hide-php-error-message/#post-1900226)
 * After a bit of digging around I found a file in wordpress that seems to handle
   most if not all error reporting. /wp-includes/class-wp-error.php
 * Do yourself a favor and back that file up before you make any changes to it, (
   I manually edited the file on my server and when I saved all the php after the
   code I placed in vanished) and put:
 *     ```
       error_reporting(0);
       @ini_set(‘display_errors’, 0);
       ```
   
 * Right after the opening php tags. I have no idea why this doesn’t work in wp-
   config anymore.
 *  [Stacy Conaway](https://wordpress.org/support/users/stacyconaway/)
 * (@stacyconaway)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/hide-php-error-message/#post-1900306)
 * Thanks very much, this seems to have solved it for me.
 *  [colai](https://wordpress.org/support/users/colai/)
 * (@colai)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/hide-php-error-message/#post-1900315)
 * Thanks, this also solved my problems.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hide php error message’ is closed to new replies.

## Tags

 * [error message](https://wordpress.org/support/topic-tag/error-message/)
 * [hide](https://wordpress.org/support/topic-tag/hide/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [colai](https://wordpress.org/support/users/colai/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/hide-php-error-message/#post-1900315)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
