Make WordPress Core

Opened 4 weeks ago

Last modified 4 weeks ago

#44199 new defect (bug)

Can't upgrade to WordPress 4.9.6

Reported by: Alex Vojacek Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 4.9.6
Component: Upgrade/Install Keywords: reporter-feedback
Focuses: Cc:


Everything has been working just fine, updating wordpress has been a regular push a button and be done with it, up until the latest update.

My website refuses to upgrade to WordPress 4.9.6, each time I press the upgrade button, it says it's been upgraded but then it shows it is still 4.9.5

I tried it a thousand times now, even uploaded a fresh copy of wordpress 4.9.6 into the site and overwritten all files and it is still displaying WordPress 4.9.5 and the Upgrade wordpress notice is there.

It is driving me nuts, what is going on here?

Change History (3)

#1 @SergeyBiryukov
4 weeks ago

  • Component changed from General to Upgrade/Install

#2 @swissspidy
4 weeks ago

  • Keywords reporter-feedback added

Hi there and welcome to WordPress Trac!

This sounds like an OPcache issue (see #36455), which means that your server still has the old PHP files in its cache.

A quick workaround to solve this would be creating a file like opcache.php in your WordPress root folder with <?php opcache_reset(); in it. Then, open that file in the browser (e.g. https://example.com/opcache.php) and delete the file afterwards.

Alternatively, you could use a WP-CLI command like https://packagist.org/packages/wearerequired/wp-cli-clear-opcache to do the same. Provided you have WP-CLI and this WordPress plugin installed, you would run wp opcache clear on the command line.

Please try this and let us know if it works.

#3 @Alex Vojacek
4 weeks ago

Your idea about OPCache was right. I did a far more easy method. I just restarted php-fpm service and the upgrade was a success.

Thanks so much !

Note: See TracTickets for help on using tickets.