how to remove warning errors in wordpress

Sometimes our WordPress site shows some errors and warnings in the website header or even the admin panel. Some of them aren’t important, so you can easily hide them! In this short tutorial we are going to give a code that does this for you. You just need to have access to the admin panel or cPanel. We are not going to tell the ways to stop these warnings, so for this one you can search it on Google!

How does a warning look?

Every warning in WordPress has something like “Warning:” in it, so it’s too easy to recognize them. For example, this is one of the warnings that can appear on every site (it’s something normal). To remove these warnings, you can place a code in the .htaccess file via Cpanel or the theme editor, and after that everything will be ok.

Warning: Undefined array key “path” in /home/h294797/public_html/wp-includes/l10n.php on line 1207

Sometimes your site shows a warning that can be an error in the future. So it’s better to solve them first and then think about hiding them. If you don’t know how to do this, then you should find a cheap WordPress designer on Fiverr or any other freelancing platform. Many of our clients don’t know anything about web design and IT stuff, and all of them think it’s too easy to fix any errors. But we should say that if you are looking for a pro for your site management, you should pay like a pro!

How to hide WordPress warnings with .htaccess

To remove errors and warnings in the header of a WordPress site, you can use this code in your .htaccess file. You should add this code at the end of the file!

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors of

If your site doesn’t have a .htaccess file, then you should create one. In this article you can read more about the .htaccess file. So now we can remove all errors in just 10 seconds and not fix them for now 😀 .

Nima Zeynali

Hi :D I'm Nima from the internet. I really love to write everything I know, and it helps me to reach my dreams with this hard and smart work :D (kidding). Let me know if you want to know anything that isn't in our blog!

Related Posts

Post a comment

Your email address will not be published.

Buy Agency google ads account
0
No products in the cart.