Title: wordpress 3.5 &#8211; How do I hide the php error code?
Last modified: August 20, 2016

---

# wordpress 3.5 – How do I hide the php error code?

 *  [guitario](https://wordpress.org/support/users/guitario/)
 * (@guitario)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/)
 * Hi, as others have said; I get this message at the top of my posts –
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/jamflex/psycholocrazy.
   com/wp-content/plugins/sharebar/sharebar.php on line 112 and defined in /home/
   jamflex/psycholocrazy.com/wp-includes/wp-db.php on line 990
 * I am not too concerned with actually adding the second argument as that sharebar.
   php file doesn’t seem to mention any of this at line 112.
 * I would just like to hide the error code, but I don’t have WordPress 3.5 on my
   computer. I just updated it online. I understand that the code is –
 * @ini_set(‘display_errors’, 0);
 * I have a wp-config.php notepad file on my computer but the associated files are
   wordpress 3.2 so that’s probably why it doesn’t work.
 * Can anyone off me a quick simple IDIOTS guide to hiding the above code please?
   It’s very important I keep the sharebar plugin.
 * Here is an example of the error – [http://www.psycholocrazy.com/6-ways-future-technology-amaze](http://www.psycholocrazy.com/6-ways-future-technology-amaze)
 * Thanks in advance.

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

 *  [calik1d](https://wordpress.org/support/users/calik1d/)
 * (@calik1d)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273853)
 * You mean commenting the code out? Or deleting it?
 *  Thread Starter [guitario](https://wordpress.org/support/users/guitario/)
 * (@guitario)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273856)
 * Anything that hides that code from anyone that views my website. I basically 
   need it to disappear pronto 🙂
 *  Thread Starter [guitario](https://wordpress.org/support/users/guitario/)
 * (@guitario)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273857)
 * I have temporarily disabled the plugin, incase anyone is wondering why the code
   isn’t showing, but I would still like to know how to hide the php error code.
 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273859)
 * The php.ini file resides in the ROOT of your server hosting account.
 * NOT in your wordpress installation.
 *  Thread Starter [guitario](https://wordpress.org/support/users/guitario/)
 * (@guitario)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273863)
 * Okay, how do I access that? I’m with Dreamhost if that helps. I’ve never had 
   to do this kind of thing before.
 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273868)
 * Typically.. you would use an FTP account or the hosts CPanel to access the file.
 * But, you have to make sure the account has ROOT access to the directories. A 
   lot of FTP accounts get set up with access only at a specified directory. You
   need the root.
 * Call your host if you need help with how to access the file. They can (should)
   help you.
 *  [Mika Epstein](https://wordpress.org/support/users/ipstenu-dh/)
 * (@ipstenu-dh)
 * DreamHost Rep
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273889)
 * Hi, guitario, I took a look at your site, and you can totally use `@ini_set('
   display_errors', 0);`
 * If you edit your wp-config.php file, you have a link for `define('WP_DEBUG', 
   false);` and you can put that ini set on the line right below it. That should
   do the trick and it doesn’t matter that you started on 3.2 🙂 Your site is definitely
   running 3.5 and thats what matters.

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

The topic ‘wordpress 3.5 – How do I hide the php error code?’ is closed to new replies.

## Tags

 * [dreamhost](https://wordpress.org/support/topic-tag/dreamhost/)
 * [wordpress 3.5 error](https://wordpress.org/support/topic-tag/wordpress-3-5-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [Mika Epstein](https://wordpress.org/support/users/ipstenu-dh/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/wordpress-35-how-do-i-hide-the-php-error-code/#post-3273889)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
