Hide php Error Message in WordPress

Recently I received a mail from our regular user about php error in WordPress site. According to him everything working fine on their blog but displayed error never look like good for website and impression among users.

php error in wordpress

After searching on internet and trying of fix some bugs of plugins I got a new data file within WordPress that will generally seems to manage most if not all error reporting. /wp-includes/class-wp-error.

php Carry out yourself a new favor and back again that will data file in place when you help make any kind of adjustments for it, (I personally modified the particular data file on my personal server when When I stored all the php following your rule When I slipped into vanished) and place:

1- Kindly located your error displaying file. You can do it from Admin area or ftp.

Place below code in your error displaying page:

error_reporting(0);
@ini_set('display_errors', 0);

I think it's surely Hide php Error for your website or WordPress. Let us know if you have any problem.

Himanshu is a young engineer living in India. Currently working at Cognizant as a Senior Engineer. He is an ethical hacker & blogger too, doing lots of crazy stuff... If you seem interesting, go through his portfolio: www.himstar.info : "Open Source. Millions of open minds can't be wrong!

Leave a reply:

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Site Footer

Sliding Sidebar

We are India’s largest Startup Community


We are team of ' Delhi Startups ' , most active startup community with strict spam policy.
We are making !deas happen..for future, business and jobs without charging anything, with connecting entrepreneurs.. It's a reason to trust on us.
Come and join or subscribe, we will defiantly give a reason to like us.

Our Facebook Page