1

I use plugin "Fix Another Update In Progress" and i see database wp_options table and it doesn't have core_updater_lock. This two metode doesnt work for me.. Please help

[21-Jun-2020 19:26:58 UTC] Creating lock core_updater.lock
[21-Jun-2020 19:26:58 UTC] lock_result = 0
[21-Jun-2020 19:26:58 UTC] lock_result = 
[21-Jun-2020 19:26:58 UTC] no lock and lock could not be created
18
  • It's core_updater.lock, with a dot not an underscore, but that is where this error comes from: it only checks the lock.
    – Rup
    Jun 21, 2020 at 10:22
  • wrote incorrectly ... what's the difference, it still doesn't work
    – kaiser
    Jun 21, 2020 at 10:23
  • Actually I guess there is another option: you don't have permission to make a new row in wp_options? (Or it's being rejected by some DB trigger?) OK, then you need to debug these two places: Core_Upgrader, which checks the lock and generates the error, and WP_Upgrader create_lock. I'd start by adding error_log() calls just before the two return falses to see which is being hit.
    – Rup
    Jun 21, 2020 at 10:28
  • did not quite understand what needs to be done
    – kaiser
    Jun 21, 2020 at 10:54
  • Modify your create_lock function to look like this: gist.github.com/RupW/ee7be1ae8f8da5b6b37e942283879398 All of the error_log lines are new but the rest should be the same. Then try to update again and check your server or PHP error log to see what happened.
    – Rup
    Jun 21, 2020 at 11:11

1 Answer 1

2

In my case the problem was caused by bad import of MySQL tables in phpMyAdmin.

(I exported databases instead of only one database's content. While importing MySQL errored with "Cannot create DB" but created the tables.)

Testing INSERT INTO wp_options ( option_name, option_value, autoload ) VALUES ('core_updater.lock', 1592768373, 'no') (thanks @Rup) said I have a duplicate primary key.

If moving a wp installation is your issue, export the old data in a propper way (click database, then export), drop tables and import the new sql file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.