Get the App
SLTechnology News&Howtos  ›  Servers  › 

Resolve the hint when upgrading WordPress: another update is in progress

Shulou Source: shulou.com Published: 2022-06-02 03:37:33 11月16日 Update

This article mainly introduces how to solve the problem of upgrading WordPress: another update is in progress, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

When upgrading WordPress, the update will stop halfway due to the slow connection to the WP server in China, and the core_updater.lock record will be added to the database wp_options table. When updating again, it will prompt that another update is in progress.

As a workaround, add the following code to the current theme function template functions.php:

Global $wpdb;$wpdb- > query ("DELETE FROM wp_options WHERE option_name = 'core_updater.lock'")

After that, refresh the page of the website, the record will be deleted automatically, and the program can be upgraded normally.

It is enough to run the code once, there is no need to stay in the topic, just delete it after using it.

Thank you for reading this article carefully. I hope the editor will share the solution and upgrade WordPress tips: another update of the ongoing problems will be helpful to everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Update upgrade ongoing problem prompt article topic code necessity value content again function method at the same time data database method friend server Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn Shulou Technology Huawei OPPO Reno