Today, we will be going to have a look into some of the most typical WordPress errors that users have come across and we will teach you how to fix them.
Before writing any single line of code or start making changes in the live environment, take a backup of your existing live WordPress site!
Yes, it is necessary to have a complete WordPress backup, because once you have a back-up you would be in a position to make your website live in just a couple of clicks only and with the peace of mind you can make the changes on the Live website.
Lost Your WordPress Admin Password & Email Retrieval Is Not Working
Just assume, you forget the WordPress Admin password and while you’re trying to fetch the password from the “Lost Password” link, the link is also not working and you will be not able to generate a new password for admin. How will you resolve the problem?
We’ve two different approaches for you to resolve this problem. The one you can resolve it with phpMyAdmin and another will be via FTP.
Solution 1: phpMyAdmin
- First, you need to login to cPanel, then after clicking on phpMyAdmin under Databases.
- Then you need to select your WordPress database which is wp_users and click on the “Browse” button.
- Now, you can search for your Username and click on the Edit button.
- You are free to change the password, you can enter a new value into user_pass. Just remember, the new password will be case-sensitive.
- Once you write down your password, you need to click the dropdown menu under Function, and select MD5 from the menu.
- Lastly at the bottom of the page, you will find the “Go” button, just click on it.
Solution 2: Via FTP
- Login into your FTP Account.
- Then browse path wp-content/themes (select your active theme)/”, and then download the functions.php file from it.
- Once you open functions.php and you copy below code and write after the first
- You can now replace ‘Admin@123’ with your preferred new password. Value “1” in the code is the user ID number, which is mentioned in the wp_users table.
- Now, you need to upload the updated functions.php file to your FTP Server.
- Once you login to the WordPress website, you need to download the same file, remove the code, and upload the same file on your FTP again.
WordPress admin dashboard is not displaying properly
The user is loading the dashboard page without CSS and many important links are not organized properly.
Solution 1: Proxy & Firewall
I believe you might have heard about Proxy Connection and Firewall tools these tools are blocking CSS files and even not allow them to load properly. If so, then clear proxy, firewall, and release cookies and cache memory from your computer. Then after try to reload your page with CTRL + F5 to refresh the page.
Solution 2: Upgrade WordPress Plugins
For instance, if you’ve installed a plugin for Admin Menu like “Lighter Menu” then you must go for plugin upgrades. If that doesn’t work for you then you must deactivate the plugin.
Warning: Cannot modify header information – headers already sent by
Error Message: “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34)” It will start displaying, once you’ve done new WordPress installation or upgrade your existing WordPress version.
Solution: Remove new lines, spaces or other junk code from wp-config.php
- You need to first download the wp-config.php via FTP.
- Once you open wp-config.php you need to remove all spaces before
- In the wp-config.php file make sure the first characters are
- The same way, remove all spaces at the end after ?>
- Make sure the last characters are ?> , and it should place at the last a line without any space in between.
The mentioned error could persist on other files too. In that case, you need to apply the same logic and update the respective files accordingly.
WordPress blog and admin is showing blank page
This proposed issue might have several reasons, and for the same reason, we’ve already a written brief article on this subject. Click here to learn more about the blank page issue.
Fatal error: The allowed memory size of 33554432 bytes exhausted
Error “Fatal error: Allowed memory size of 33554432 bytes exhausted” The shared error occurred when a user tries to upload an image.
Solution 1: Edit PHP.ini
After getting an error, if you’re still able to update the PHP.ini file, then you must update the memory limit to 64M, and re-upload the same file over the FTP.
Memory_limit = 64M;
Solution 2: Edit .htaccess file
You need to add the below-mentioned code to your .htaccess file.
php_value memory_limit 64M
Solution 3: Edit wp-config.php file
You can make changes with your wp-config.php file
Increasing memory allocated to PHP define('WP_MEMORY_LIMIT', '64M');
Solution 4: If PHP.ini missing then create a PHP.ini file and upload to wp-admin folder
Open Notepad and Insert the below-mentioned script into it.
memory_limit = 64M;
Save your notepad file as “PHP.ini” and then upload the file to “wp-admin”.
You are not authorized to view this page (403 error)
Once you login to the WordPress Admin panel, you might receive an error: “You are not authorized to view this page. (403 error)”
Solution: Enable Index.php
If your existing blog or website is hosted on a Windows Enabled Server, then this could be an error with Directory Indexes.
- To resolve this issue, you need to login to the Control Panel.
- Then Click on Web Options and Go to Directory Indexes
- Add index.php file to the Directory Indexes.
Fatal error undefined function is_network_admin()
Once you upgrade the WordPress version and then after if you’re trying to login into the admin panel, you might receive this error message: “Fatal error undefined function is_network_admin()“
Solution: Manual Update
The above-stated error occurs when you fail to Upgrade WordPress Version. To resolve this issue, you need to install and upgrade WordPress Version Manually.
- First, you need to download the latest WordPress version zip file and unzip it.
- Then most important factor, back up your WordPress website immediately.
- You need to rename wp-includes and wp-admin directories to wp-includes.bak and wp-admin.bak.
- Then from the latest WordPress latest version folder, you need to copy & upload the wp-includes and wp-admin directories over the FTP.
- Then after you need to upload the files from new wp-content to>wp-content folder. You need to replace and overwrite existingfiles.
- Then, you need to upload the new version of the rest of the files from the directory to your existing WordPress root directory.
- Once you did, you need to remove the file name “.maintenance” at your WordPress directory via FTP.
- Once you login to your WordPress admin panel, you will be given a link like “http://domain.com/wordpress/wp-admin/upgrade.php“. You just need to follow the link and instructions.
- With your computer or laptop, if you have caching enabled; then you need to clear your cache memory to see the revised changes.
You can check the WordPress.org for WordPress manual update.
WordPress Admin Login 404 Issue
When you tried to login to the WordPress Admin Panel, and you found a page with a 404-page error.
Solution 1: Update the URL in the database
- First, you must try to update the Admin URL in the database.
- To do that, Login into the cPanel, and then click on phpMyAdmin.
- Then after click on your WordPress existing database and Go to wp_options, click on Browse.
- Now, find site URL under the field option_name and then Click on Edit.
- From here you can change the URL in the input box of option_value.
- Once you change the URL, you need to find the Go button at the bottom of the page and just click on that.
Solution 2: Update folder attributes via FTP
- First, go to the “wp-admin” directory and then Right-click on the wp-admin directory, and after that click on the option File Attributes.
- It will open a popup in which you need to update the value field with “755” and select the checkbox “Recurse into subdirectories” if there’s an option for selection. Once you did, click on the OK button.
- Repeat the above-mentioned process for “/wp-content” and “wp-includes”.
- Then after first clear cache and load “WordPress Admin URL” and then try to login to the WordPress Admin Panel.
“Briefly unavailable for scheduled maintenance” message remains after an automatic upgrade.
Error Message: “Briefly unavailable for scheduled maintenance” this message start displaying just after an automatic upgrade has completed.
Solution: You need to remove the “.maintenance” file
WordPress.org team has developed amazing code in the backend. Once you upgrade your WordPress existing version, automatically one “.maintenance” file created in the root directory. If your upgrade fails or won’t be completed properly at once, then this file will notify your visitors that the website is under maintenance. Let me share with you, how we can remove this file from FTP.
- First, you need to, access your website or blog root directory via FTP.
- Then search the file name “.maintenance” and delete it from your root directory.
- Once you resolve this issue, you may wish to start WordPress Upgrade again.
Can’t delete a plugin
It may be a scenario wherein you may not be able to delete a plugin in WordPress Admin as well whenever you’re deleting the plugin from directory via FTP, it appears again and won’t be deleted.
Solution: You can delete the plugin via Secure Shell (SSH)
It may be a case, the plugin might have uploaded some hidden/nested files inside the plugins directory which won’t appear to you in the FTP directory.
- If you have SSH access to your website, then you must first login to your website via SSH.
- Use SSH commands to you need to find this path “../wp-content/plugins/”.
- You can use ls -al to see the full list of folders.
- You need to find and delete a particular plugin folder with rm (Folder Name).
Do you have any other issues or difficulties with your WordPress website? Then do not hesitate to share with us, we would be happy to help you out. Also, you can comment below if you’ve encountered any of the above-listed issues with your website or blog.