Here we are with our final short guide on common WordPress errors and their solutions; as promised.
If you are late to catch up this post, here are our Part1 and Part 2 of our short guide for WordPress errors.
In our final guide, we will discuss common yet complicated WordPress errors which are mostly occur out of the blue.
WordPress red error page- This site ahead contains harmful programs
If you are seeing âThe site ahead contains harmful programs Errorâ on your WordPress website, the probability is that your WordPress site has been hacked or is infiltrated with malware.
Even if you have disinfected your website and fixed the hack, sometimes this red screen keeps on coming. This is because Google flags such websites to warn visitors. Before we get into the solution to this error, do implement these advanced security tips for WordPress to stay safe from malware and hacks.
Solution for This site ahead contains harmful programs screen
Now that we know the cause of the error, letâs move on to fixing it. As a best practice, it is always recommended to backup your website before performing any of the disinfection practices.
The first step is to find the cause of the error.
Use Sucuri to scan the website. Sucuri provides a free tool to scan your website for malware. You can access this free tool from here.
In above image, the Sucuri scan report suspects malware on the website.
If you are taking regular backups, then recovering from malware can be easy. Simply restore the backup.
If you do not have any backups, then you have to remove these files manually.
Another fix to this problem is Wordfence, it is a WordPress security plugin which you can use to scan your WordPress sites. The Best feature of Wordfence plugin is that it replaces the infected files with clean ones.
Asking Google to Reconsider your site
It seldom happens, Google will flag your website as hacked even if you have neutralized your website.
For requesting Google to reconsider your site, you have to request them to reconsider your site.
But before reconsidering your site for submission, check your site using Googleâs safe browsing analysis tool.
After checking with safe testing tool, then apply for reconsideration from Google search console.
This video will demonstrate how you can request reconsideration request.
Upload: Failed to Write File to Disk error in WordPress
There can be numerous reasons behind this error but the most common reason is incorrect folder permissions.
Incorrect permissions to folders take away your ability to write files on the server. This means you cannot create, edit or add new files to the folder(s).
If you try to upload images on the server, incorrect file permissions may also produce these error messages
- WordPress failed to write to disk
- WordPress has failed to upload due to an error failed to write file to disk
- Unable to create directory wp-content/uploads/2017/09. Is its parent directory writable by the server?
Solution for Write failed to disk error
The only solution to this problem is to fix the write permission.
You can fix the folder permission error using FTP.
Fix permissions using FTP
Connect to your hosting using FTP client. We prefer using Filezilla.
Once connected, reach to public_html folder.
Search for wp-content folder, right click on them and select file permissions.
Enter 755 in the numeric value field.
Check the box next to âRecurse into subdirectoriesâ.
Next click on âApply to directories onlyâ option.
Click on the OK button to continue.
Your folder permission is set to 755. Now refresh your browser and again try uploading.
Â Here is official WordPress resource on file and folder permissions.
WordPress Keeps Logging Out Problem
That can look strange, you continuously keep logging out of WordPress. One of the suspicions can be that someone else is using your credentials.
This is not the case often, it can happen because of URL mismatch in cookies.
Whenever you authenticate admin dashboard on your website, WordPress automatically creates a cookie in your browser. The cookie stored has all the configured settings stored in it, including WordPress URL.
If the URL you are trying to access is different from stored URL, WordPress will not authenticate you and will log you out.
Solution for session logging out in WordPress
A simple fix for this login issue is to make sure that you have the same URL in your Site Address and WordPress Address fields in your WordPress settings.
You can either choose www or non-www in for both the fields.
To change it, login to WordPress dashboard and go to Settings Â» General.
If you do not have access to dashboard, then change access URL from wp-config.php.
Open wp-config.php and add these lines.
If your URL is same and this error still persists, then try doing these solutions.
- Deactivate all the Plugins
- Clear all browser cookies
- Empty browser cache
WordPress login page refreshing/redirecting issue.
It is another type of login error which most of the user’s face. Your login page keeps refreshing and redirecting back to login screen. Â Â
Most of the time it happens due to incorrect values of site URL in WordPress Options table. It can also be caused because of poorly configured permalink and redirects setup.
Solution for WordPress login page redirecting/refreshing
At first, clear your browser cookies to try resolving this issue. If the issue still persists then try other methods.
Deactivate all the plugins. Sometimes it happens because of two plugins conflicting with each other.
To deactivate simply navigate to /wp-content/plugins/ directory using FTP client or Cpanelâs file manager and rename the plugin folder to plugin_old.
This will deactivate all the plugins.
Update Site URL if plugins is not the issue. To update URL, edit wp-config.php file and add these entries to it.
Invisible text and missing buttons in WordPress Visual Editor
This error is quite rare but leave users in astonishment.
In this error your visual editor shows no content or no editing icons for posts or page while editing.
Even if there is text or you are writing something, the writing space will appear white.
Solution for Invisible text and missing buttons in WordPress Visual Editor
Clear browser Cache: The first thing you should do is clear your browser cache or use another browser. This fix has worked for most the the users, so try doing it first.
If this does not fix your issue, maybe the issue is with the scripts.
Replacing TinyMCE Scripts: Download tiny MCE from tinymce.com and replace it with a folder at Â /wp-includes/js/tinymce/.
Disable Concatenate Scripts: If none of these worked for you, then disable concatenate scripts from wp-config.php.
Add this line after opening PHP tag.
We have come to an end for our WordPress errors and their solutions mini guide. Â
We hope that the guide Â will help you fix some of the notorious WordPress errors.
If you have any queries, please share it in the comments below.