WordPress has quickly become the favorite software to use when creating a new website with it powering 35% of the internet. If you’re planning to create a new website then it’s a good place to go for it. Something you must consider when doing this is the quality of the WP hosting provider you use and how it impacts your website. WordPress can go from a dream to a nightmare if you’re with a bad hosting provider. Anyway…
Recently, on November 16, 2017, WordPress released its latest version. WordPress 4.9 “Tipton”. Named after a Jazz musician, Billy Tipton. That news may sound like a (Jazz) music to the WordPress users’ ears but not for long. The new WordPress, encountered an error. This is not something new. In fact, just like any other release, there are many errors which eventually get resolved. Hosomwever, input from the WordPress community is necessary in order to get a hold of whatever’s wrong and this article is one such attempt.
So the story is that my web hosting provider, auto-updated my blog to the latest version of WordPress 4.9. That’s convenient but for the first time ever since I started using WordPress, I encountered an error immediately after the update. The error was that I was unable to edit any of my files in the WordPress Editor.
Finally, of course, with the help of the volunteers on the WordPress’s forum I was able to resolve the WordPress 4.9 Error so I thought why not share my resolution with many of the other WordPress users out there who might be facing the same problem.
After all, it’s all about giving back to the community. Right?
However, before going further, here’s a small but necessary disclaimer.
First, I truly admire WordPress as a CMS platform and this article is in no way to degrade the platform in any sense. The errors are normal part of the development process and they are acceptable as long as they don’t damage your blog/website significantly.
Second, the solution below of course, does not apply to all the WordPress users. There may be many reasons for the same issue and it’s literally impractical to test all of the solutions. So I’d rather stick to the problem that I faced, resolved, reproduced and then resolved again in order to make sure that the problem identified was, in fact, a problem.
So once we’ve gotten the disclaimer covered, let’s start with the details of the error and how I resolved it.
WordPress 4.9 Error – Unable to Edit Files in WordPress Editor
As the heading suggests, soon after the update, I was unable to edit my
header.php file. I wanted to apply some changes in the file and wasn’t able to do so.
As soon as I’d hit the “Update” button after making the changes, it’d keep on processing and would end up giving the following error:
“Unable to communicate back with site to check with fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP”.
To be honest, this wasn’t the only that was showing up. After couple of tries more, it gave me
“Scrape Nonce Check Failed” error as well. However, after a day, when I tried to reproduce this error, I couldn’t. So I’ll just keep it to this, “Unable to communicate…” error only.
Following The Obvious Path
Of course, I googled the issue and found that there are dozens of other people with the same issue as well.
So WordPress 4.9 Error that I was facing wasn’t just confined to me.
After this confirmation, I scrolled for the solution and found it to be too technical.
Don’t get me wrong. I don’t mind barging into the “Technical Realm” but I prefer applying Occam’s Razor for the resolution of my issue.
So I started searching for rather simpler solutions.
After some more research, I thought why not look for the solution purely from my perspective. Hence, I went on to create my own thread on the WordPress forum
Response On My Thread.
After few hours, I received a response from the moderator, Steve Stern who asked me to install Health Check plugin and report back its findings.
Just for summary, health check plugin generates a report of your WordPress, PHP and database information so in many cases, it’s quite a handy detection tool.
Following the tip, I installed the plugin and when tried to use it, again, it kept on loading and eventually the browser ended up with Error 504 – Gateway Timeout.
Another WordPress Volunteer To The Rescue
Needless to say, I updated this on the WordPress thread and then another good fella (or girl) advised me to primarily deactivate my Contact plugin and then report any update. She also suggested me that I might be having WP_CRON error as well while some other plugin could also be causing the problem.
For a moment, I thought to be trapped in the abyss of errors after errors but I had no choice. So I went to my plugins list to deactivate my contact plugin.
No Contact Plugin
As soon as I landed on my plugins list page, I remembered that a couple of days back, I deactivated and deleted my previous contact form plugin. While I installed another one but I never activated it.
So the error due to contact form plugin was out of the equation.
The only option left for me to apply the trial and error methodology and deactivate plugins one by one while at the same time keep checking if the error is resolving.
Sometimes, Laziness Pays Off
I started looking for the plugin to be the first member of my hit list and to be honest, I did not want to deactivate majority of them as all of the plugins were playing the key role in the functioning of my blog. Additionally, I also feared that I had to reconfigure some of the plugins in case I reactivate them.
Truly speaking, I was just being lazy.
I started looking for the plugin which would have the least impact if I deactivate it and there you go, I found one.
This plugin was Shortpixel Image Optimizer.
My Lucky Day
I deactivated Shortpixel Image Optimizer, went straight to Appearance?Editor, applied some comments in my
header.php file, clicked “Update File” and voila…!
It must be my lucky day as deactivating the very first plugin did the trick for me. As an afterthought, I should have bought a lottery ticket but alas, I exhausted my good luck on this WordPress 4.9 error.
Reproducing The Same Issue
To be sure that the solution is indeed not a fluke, I decided to take a rather more scientific approach and thought that before announcing my “major discovery” to the world, I should be confident that error was indeed because of that plugin.
In that case, if I reactivate the plugin, I should be 100% sure that it will reproduce the same issue. In case not, then even though I might have resolved the issue for myself but that’s it. I could not suggest it to anyone else.
So this is what I did. Went to my plugins list. Reactivated the Shortpixel Image Optimization plugin, edited my
header.php file and clicked the “update file” button.
The error appeared one more time.
Indeed the plugin is having issue with the WordPress 4.9 version. So I went in the “Add New” section of the plugin area in order to see if the plugin is compatible with the latest WordPress version.
To my surprise, it says it is.
Seems like that the developers haven’t been informed yet. So I took it on myself and have emailed them about the issue.
I’m sure they will eventually figure it out.
So What’s The Crux Of The Matter?
The crux of the matter is that while there may be more than one causes of the above WordPress 4.9 error, it’s good to first see if the solution that I’ve jotted above applies to you as well.
If yes, then I’d be glad of being of some help. In case not, then I’d suggest you to start your own thread on WordPress forum and see if that helps. It might help to go from a previous system restore point. If this currently isn’t a major issue for you consider making a creating a system restore point. Additionally, if you resolved the error it’d be great to share your solution either below in the comments section or in some other forum so that anybody else can gain benefit from it.
Goodbye for now.
I recently checked if the WordPress issue is still there by updating the plugin Shortpixel Image Optimizer to version 4.8.7.
After updating, I can edit and save my files in the WordPress File Editor section. So the WordPress 4.9 Error due to Shortpixel Image Optimizer plugin is resolved and you may no longer need to deactivate the plugin.
Simply updating it to the latest version will do the trick now.