Home > CMS Tutorial > WordPress > Solve the problem when upgrading WordPress: Another update is in progress

Solve the problem when upgrading WordPress: Another update is in progress

藏色散人
Release: 2019-11-12 11:56:26
forward
1949 people have browsed it

The following column WordPress Tutorial will introduce to you the solution to the problem of "Prompt when upgrading WordPress: Another update is in progress". I hope it will be helpful to friends in need!

Solve the problem when upgrading WordPress: Another update is in progress

When upgrading WordPress, due to the slow domestic connection to the WP server, the update will stop midway, and a core_updater.lock record will be added to the database wp_options table. When updating again, it will prompt: Another An update is in progress.

Solution, 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'");
Copy after login

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

It is enough to run this code once. There is no need to keep it in the theme. Just delete it after use.

The above is the detailed content of Solve the problem when upgrading WordPress: Another update is in progress. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:zmingcx.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template