After a core WordPress replace, many customers get locked out of their WordPress Dashboard, with an infinite loop saying No Replace Required Your WordPress database is already up-to-date!
It may be distressing, but it surely’s simple to repair, and we’ll lay down the choices on this article to get you again to running a blog.
Why is that this occurring?
It’s important to grasp why that is occurring within the first place as it might assist you determine resolve it, simply within the unlikely case our options beneath don’t work.
When the database is upgraded, a small piece of knowledge is marked as “improve finished” and WordPress can transfer on. The issue at hand is attributable to a glitch during which that info stays in a “want improve” state within the cache.
Subsequently, WordPress thinks it must upgrades the database, solely to seek out out that it has already been upgraded, therefore the message and infinite loop! All pages inside /wp-admin/ will redirect to that dreadful message.
The resolution is to clear the cache chargeable for retaining this outdated info, however there are lots of cache choices, so we’ll cowl as a lot of them as attainable.
Tips on how to Repair No Replace Required
Clear the WP Object Cache
Usually, that is occurring to individuals who some type of in-memory cache corresponding to Memcache, Memcached, or Redis however can also be legitimate for much less generally used WP in-object cache corresponding to PHP APC.
A file known as object-cache.php within the /wp-content/ folder is chargeable for letting WP PHP code speak to the chosen in-memory caching system. As soon as the in-memory cache is cleared, it is best to regain entry to WordPress and be out of the loop.
Listed below are some methods to clear the in-memory cache:
Use the internet hosting firm’s consumer interface to clear the cache
The Best method to clear the cache is to do it by way of a management panel at your internet hosting firm, or ask help to clear all caches in your behalf. Every internet hosting firm might have a barely completely different approach of doing it, so listed here are some references for GroundSite or Cloudways.
Rename object-cache.php to realize Dashboard entry
If in case you have FTP entry to your WordPress, you’ll be able to go to /wp-content/ and rename object-cache.php to object-cache.bak.php (or another title). It will disable the in-memory cache code, so WordPress gained’t entry the old-fashioned knowledge anymore.
After doing this, it is best to be capable of regain Dashboard entry. From there, you’ll be able to go to your favourite cache plugin (W3TC, WP-Rocket, Redis, Memcached, or another) and click on on the “Clear cache” / “Flush cache” or “Clear all caches” button).
More than likely, interacting with the caching plugin will immediate the plug-in to create a brand new object-cache.php file that you could see by way of FTP.
Because of this in-memory caching has resumed and that issues are again to regular.
Clear in-memory caches with WP-CLI
Many internet hosting firms now help WP-CLI, a command-line software for WordPress web sites. This enables folks to execute WordPress code with out entry to the Dashboard.
If in case you have entry to the WP-CLI command line immediate, use “$ wp cache flush” to clear the in-memory object cache. Right here’s the documentation of the WP-CLI cache flush command.
Clear in-memory caches from the server command line.
In case you are comfy with the Linux command-line, it is usually attainable to clear Memcached or Redis with out going by way of WordPress. Right here’s do it with Memcache, and directions for clearing Redis cache knowledge.
Clear Memcached from the command-line
- telnet localhost 11211
- give up
These three instructions ought to get the job finished.
Much less widespread issues and options related to “No Replace Required.”
Some customers have reported experiencing this infinite loop, with out utilizing any caching plug-ins.
It might be true that no caching plug-in is put in, however it’s attainable that PHP (the runtime which executes WordPress) itself has some type of energetic caching.
Resolution : restart PHP in your server
To check this concept, you’ll be able to restart PHP utilizing the internet hosting consumer interface (if there may be such an possibility) or ask help to do it for you. Optionally, restart your internet server (Apache or Nginx) as nicely.
This occurred to me: I did clear the cache (Redis), however the issue saved repeating. Apparently, the WP-Optimize plug-in that was put in was interfering with the caching concern, and it’s only after I eliminated it that the cache was cleared accurately.
I haven’t taken the time to research “why” this was occurring, however the takeaway is that you probably have a number of plug-ins that will use in-memory caching, this might occur, and also you would possibly have to disable that plugin by renaming its folder title in /wp-content/plugins/ or delete it.
There are a lot of methods to disable plugins, and Kinsta has made a superb article on that subject.
Wp_options desk db_upgraded worth
Some customers have reported that after the improve, the “db_upgraded” worth within the MySQL “wp_options” desk was nonetheless set to zero (false). Utilizing PhpMyAdmin to set it to 1 (true) might resolve the issue, that’s the reason many internet hosting firms set up PhpMyAdmin on their servers.
I often don’t suggest folks to edit the MySQL database manually. When you’re not very comfy with MySQL (the database commonplace powering WP) and PhpMyAdmin (a graphical MySQL admin interface), ask your internet hosting help to do it for you. Chances are you’ll need to backup your Database too.
If all else fails, reboot your server
In case your in-memory caching system is on the identical WordPress server, a whole reboot must also do away with the issue.
It creates downtime whereas the server reboots, however that ought to get the job finished and clear all types of in-memory caching.
This downside has been round for some time, and I think it should occur once more. If all else fails, you’ll be able to head to the WordPress.org boards to ask for assist, or drop a remark on this article (click on on the speech bubble).
Filed in . Learn extra about WordPress.