• Resolved virdharainfotech

    (@virdharainfotech)


    Fatal error: Uncaught RuntimeException: Error saving action: Error saving action: Duplicate entry ‘0’ for key ‘PRIMARY’ in /home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/external/src/Forminator/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/external/src/Forminator/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action() #1 /home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/external/src/Forminator/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(340): ActionScheduler_HybridStore->save_action() #2 /home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/external/src/Forminator/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(315): ActionScheduler_ActionFactory->store_unique_action() #3 /home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/external/src/Forminator/woocommerce/action-scheduler/functions.php(166): ActionScheduler_ActionFactory->create() #4 /home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/abstracts/abstract-class-general-data-protection.php(91): as_schedule_recurring_action() #5 /home/u530242577/domains/astrokirti.com/public_html/wp-includes/class-wp-hook.php(324): Forminator_General_Data_Protection->data_protection_cleanup() #6 /home/u530242577/domains/astrokirti.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /home/u530242577/domains/astrokirti.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/u530242577/domains/astrokirti.com/public_html/wp-settings.php(704): do_action() #9 /home/u530242577/domains/astrokirti.com/public_html/wp-config.php(108): require_once(‘/home/u53024257…’) #10 /home/u530242577/domains/astrokirti.com/public_html/wp-load.php(50): require_once(‘/home/u53024257…’) #11 /home/u530242577/domains/astrokirti.com/public_html/wp-admin/admin.php(34): require_once(‘/home/u53024257…’) #12 /home/u530242577/domains/astrokirti.com/public_html/wp-admin/plugins.php(10): require_once(‘/home/u53024257…’) #13 {main} thrown in?/home/u530242577/domains/astrokirti.com/public_html/wp-content/plugins/forminator/library/external/src/Forminator/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php?on line?44

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @virdharainfotech,

    I hope you are doing well today.

    We had a similar issue reported before and it was reported when a member was migrating the?database.

    The below solution should update that plugin tables via the standard WordPress method. It’s better to deactivate all plugins except Forminator to avoid the call from other plugins.

    Please add the following code snippet as a?mu-plugin:

    <?php
    add_action( 'plugins_loaded', function() {
    if ( class_exists( 'ActionScheduler_StoreSchema' ) && 'fix_schema' === filter_input( INPUT_GET, 'fix_schema' ) ) {
    $store_schema = new ActionScheduler_StoreSchema();
    $store_schema->register_tables( true );
    }
    } );

    You can find more information below on how to use mu-plugins.
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
    and
    https://www.ads-software.com/support/article/must-use-plugins/

    Then please go to?yoursite.com/wp-admin/admin.php?page=forminator&fix_schema=fix_schema

    It would be better to test this out on your staging/dev environment first before your live site and make sure you have the latest backups.

    Kind regards,
    Zafer

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @virdharainfotech

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind Regards,
    Saurabh

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.