Skip to main content

5 Most Common WordPress Errors With Solutions


             WordPress is one the most popular CMS platforms which people use for creating their blogs, websites and e-stores as well. Whether you are an Experienced WP Programmer or a newbie who loves to install plugins or widgets, you need to understand that encountering errors is unavoidable. Sometimes it becomes really frustrating when we get some unexpected errors and we don’t know how to solve them! So, if you are also facing some kind of errors in WordPress, this blog post is surely for you as we would be talking of some common WP errors along with their solutions.
1. Lost Admin Password & Email Retrieval Is Not Functioning
Problem: Many times it happens with WP users that their admin password doesn’t work. And when they try to recover the password using “Lost Your Password” feature which helps in getting the new password via email, this also doesn’t work.
Solution: In order to solve this issue, there are 2 alternatives available.
a) Solution via PhpMyAdmin
§  In this method, you need to login your cPanel and click on PhpMyAdmin under Databases
§  Now, select your database
§  Next, you need to go to wp_users and click on “Browse”. Check username and click on “Edit”
§  Now Reset your admin panel password by inserting new value into user_pass
§  After completing all above steps, click the dropdown menu under Function
§  Now choose MD5 from the menu and click on “Go” button appearing at the end of the page.


b) Solution via FTP Another solution to fix this error can be done via FTP. Here are the steps to be followed:
1.     Login to your FTP account using Filezilla or other FTP client
2.     Now download functions.php file by going to root/wp-content/themes/(your current theme)/
3.     Open functions.php file and add following line of code immediate after <?php: wp_set_password(‘YourNewPassword’,1);
4.     Time to upload the edited funtions.php file using FTP
5.     Try to login your WP Admin


2. Display Issues in WordPress Admin Dashboard
Problem: Sometimes WP users also face display issues while browsing their WP Admin dashboard. This is how their dashboard looks like:
Solution: In order to fix this issue, there are 2 alternatives available-
a) Proxy & Firewall First of all, check if the internet connection that you are using is behind firewall or proxy connection. It might be possible that some of these tools are blocking CSS files and not letting them load properly. So, clear all your proxy or firewall cookies/caches and refresh the page.
b) Update WordPress Plugins In case you have installed plugins like ‘Admin Drop Down Menu’ plugin or ‘Lighter Menus’ plugin, then make sure these are updated with latest version. If you face issues in upgrading them, better to deactivate these plugins.

3. Warning: Cannot Modify Header Information – Headers Already Sent By Problem
One of the most common errors that WP users get is- “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34)” Generally this error comes either after WordPress upgrade or new WP installation.
Solution: Let’s see how can you fix this issue!
1.     In order to resolve this issue, you need to check your wp-config.php file. So, download this file via FTP
2.     Now open this file and remove all the spaces before <?php
3.     Make sure there are no extra spaces in the file
4.     Initial characters should be <?php and last characters should be ?>
Note: This error can also come from some other files. In order to identify the file name, read the error message carefully.

4. WordPress Admin/ Blog Shows Blank Page Problem
After installation of new theme or WP upgrade, you might encountered with such error. Your blog and admin page shows blank page and you will not be able to access the dashboard.
Solution: In such situation, there are two solutions that can be used:
a) Rename Currently Used Theme Folder
Try to rename the theme folder via FTP which is currently used on your website or blog.
1.     Connect your FTP and go to wp-contents/themes
2.     Now rename the current theme like “twentyten” to “twentyten-test”
3.     Try to login your admin (wp-admin)
4.     Check if the theme is compatible with your WordPress Version
b) Reset Plugin Folder
§  Connect your FTP and go to wp-contents
§  Now rename “plugins” folder to “plugins-test”
§  Create a new folder with a name- “plugins” and move data from “plugins-test” to “plugins”
§  Login WP Admin and activate each plugin one by one.
§  Also, check if your plugins are compatible with your WordPress version.

5. Fatal Error Undefined Function Is_network_admin() Problem
Problem: After WordPress upgrade, you might get this Fatal error.
Solution: Since this error comes after version upgrade, we suggest you all to try a manual update process. Take a look at the manual upgrade steps:
Manual Update
This error is caused by a fail WordPress version upgrade. Try a manual update.
1.     Firstly, download latest version of WordPress from WordPress.org. This would be in zip format, so unzip it.
2.     Now take a complete backup of your current WordPress and database.
3.     Deactivate all your plugins iv. Rename  wp-includes and wp-admin directories to any name you want.
4.     Now upload each file from new wp-content folder to existing wp-content directory. Replace and overwrite existing files. Make sure you don’t delete any folder or file in this process.
5.     Upload remaining files of new WordPress to the root of existing all new loose files from the root directory of the new version to your existing root directory.
6.     Remove .maintenance file from WP directory via FTP
7.     After following all above steps, now login to your admin panel where you will get a link like http://yourwebsite.com/wordpress/wp-admin/upgrade.php. Please click on this link and follow the instructions. This process will update your site’s database which will be compatible with latest version.


Comments

  1. your work is appreciated.My work is going smoothly with time saving, this is because of your sharing.common wordpress errors.Keep it up.Thank you.

    ReplyDelete

Post a Comment

Popular posts from this blog

Php Interview Questions

1. What Is PHP ? 2. How can I disable the output of error messages inside the HTML page? 3. Can I return other file formats (like Word, Excel, etc) using PHP? 4. Is there any way to force PHP to do garbage collection before the end of the request? 5. Why does require($file_name) in a loop just include the first file repeatedly? 6. Can you include and call C libraries in PHP scripts? How? 7. What's the best way to start writing a PHP program? 8. Passing variables with REQUIRE function (part II) 9. I use a /cgi-bin/ad.pl for displaying rotating banners at the top of my html files. How can I insert the output of this cgi in an "included" file ? 10. please tell me how to let a html document read content from a .txt file, spit this out in a table, and how to update the specific file with a form 11. How can I add authentication to my site with PHP? I have authentication working only with one page. 12. Where can I get documentation for the Zend API? 13....

Laravel CRUD With MongoDB

Laravel is the most popular framework of php. laravel better than another PHP framework because it handles the command base. so let us see about laravel 8 MongoDB CRUD tutorial example. it was released on Sept 03, 2019. Now, we follow the below step for creating the laravel 8 MongoDB CRUD operation(Laravel 8 CRUD example). Overview Step 1: Install Laravel 8 Step 2: Configure MongoDB database Step 3: Install laravel-mongodb Package Step 4: Add Route Step 5: Create Model and Controller Step 6: Create Blade Files Step 1: Install Laravel 8 We are going to install laravel 8, so first open the command prompt or terminal and go to xampp htdocs folder directory using the command prompt. after then run the below command. 1 composer create-project --prefer-dist laravel/laravel laravel8_crud_mongodb Step 2: Configure MongoDB database After the complete installation of laravel. we have to database configuration. now we will open the .env file and add the MONGO_DB_HOST, MONGO_DB_PORT, MONGO_DB_DATA...

5 Significant Reasons For Having A Good Website For Your Business

In this era, where everything is now available online, and people are becoming more and more Internet dependant, any company needs to have a well-built website. People tend to check any company online before getting any service from them. A well-built website will help to make you a good impression on your consumers, and they will gain reliability on you. A well-maintained site is the essence of a good company, and without a website, you will fail to make that vital first impression on your customers. It would be best if you also used   website promotion   to promote your website. The certain benefits of having a website are mentioned below. Accessible: A website makes your business available to people 24*7. People can search your website anytime they want and visiting your website will provide them with relevant information that they are looking for. If you hire a  responsive   web design company ,  then you can be sure of your website to make an excell...