Problems with the database after updating the plugin
-
After updating WooCommerce to 5.9.0, there were problems working with the site:
* It was not possible to update automatically, the error “Updating the plugin is not possible. Access rights are probably incorrectly configured.” Updated the plugin manually by copying the new version of the WooCommerce plugin folder. The site suggested updating the database. Clicked refresh. There were several operations, one failed “‘update_callback’ => ‘wc_update_560_create_refund_returns_page'”. Error text “2021-11-26 12:34:09 +0000 emergency shutdown: Critical error PHP Cannot redeclare filter_created_pages() (previously declared in /wp-content/plugins/woocommerce/includes/wc-update-functions.php:2281) at /wp-content/plugins/woocommerce/includes/wc-update-functions.php in line 2281”
? After upgrading the site was unavailable for a few minutes with the error “unable to connect to database”. After the site started working.
* Exactly 3 days later, the site became unavailable again with a similar error. The unavailability was about 3 o’clock. MySQL did not start. The sysadmin unsuccessfully tried to reanimate the database all the time. At some point it worked when the line max_open_files=16384″ was commented out. Although it may be a coincidence, because before that it was also removed and the site did not work.
? When trying to deploy a duplicate copy of the site on a virtual hosting, the site could not be deployed, error: Unable to connect with the following parameters.. Host… user … database … Error: Too many connections.
? I checked the experiment. On the test site located on the same VDS on a fresh copy of the working site made by the Duplicator, the WooCommerce and database updates went smoothly without any problems, everything works there.
Obviously, there is still some problem with the plugin and the database. How to understand what the problem is and fix it?
- The topic ‘Problems with the database after updating the plugin’ is closed to new replies.