Turn off php warnings on shared hosting – wp-config

To turn off php warnings on a production wordpress website add this code to the top of wp-config.php file right after the opening php tag:

error_reporting(0);
@ini_set(‘display_errors’, 0);

 

Source: http://www.lost-in-code.com/platforms/wordpress/turn-off-error-reporting-on-your-production-site/

Advertisements
Posted in wordpress
One comment on “Turn off php warnings on shared hosting – wp-config
  1. Dale Nowick says:

    There is certainly a lot to find out about this topic. I like all the points you made.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: