1. Home
  2. Common Problems
  3. How to Resolve the ActionScheduler_DBStoreMigrator Error

How to Resolve the ActionScheduler_DBStoreMigrator Error

WP Simple Pay does not require or load WooCommerce. It is a standalone payment plugin. However, it does utilize a PHP library that is maintained by the authors of the WooCommerce plugin, which is why you see woocommerce in the directory path in the error below.

/plugins/stripe/lib/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php. Error message: Uncaught RuntimeException

The error, which can occur on some site configurations that include this library, is corrected by implementing a common solution outlined below.

1. Take a complete backup of your website

2. Install this plugin: https://wordpress.org/plugins/code-snippets/ or use your existing installed snippets plugin

3. Head over to the All Snippets menu in the left sidebar and click Add New

4.  Give that snippet any name and copy the below code in the Code field

add_action( 'init', function() {
    delete_option( 'schema-ActionScheduler_StoreSchema' );
}, );

5. Select ‘Only run in administration area’ option (if using the suggested Code Snippets plugin) and click the Save and Activate button

6. Open WordPress Dashboard in a new window

7. Then deactivate recently created snippet   

Was this article helpful?

Still stuck? How can we help?
Updated on July 6, 2022