• Resolved shreeglobalgroup

    (@shreeglobalgroup)


    Hello Everyone,

    I am getting below error message when I am trying to login into wp-admin login page but my site is working fine;

    Fatal error: Uncaught exception ‘RuntimeException’ with message ‘Error saving action: Duplicate entry ‘0’ for key ‘PRIMARY” in /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:75 Stack trace: #0 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action)) #1 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(105): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action)) #2 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/functions.php(54): ActionScheduler_ActionFactory->recurring(‘woocommerce_cle…’, Array, false, 86400, ”) #3 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Installer.php(129): as_schedule_recurring_action(false, 86400 in /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 75
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Learn more about debugging in WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    What version of WooCommerce are you using? Please make sure you’ve installed the latest version of WooCommerce then see if the error shows then.

    Thread Starter shreeglobalgroup

    (@shreeglobalgroup)

    Thanks for reply,
    I am getting below message in my email

    WordPress version 5.4.2
    Current theme: OceanWP (version 1.8.6)
    Current plugin: WooCommerce (version 4.3.0)
    PHP version 7.3.14

    Error Details
    =============
    An error of type E_ERROR was caused in line 75 of the file /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php. Error message: Uncaught RuntimeException: Error saving action: Duplicate entry ‘0’ for key ‘PRIMARY’ in /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:75
    Stack trace:
    #0 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action))
    #1 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(105): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action))
    #2 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/functions.php(54): ActionScheduler_ActionFactory->recurring(‘woocommerce_cle…’, Array, false, 86400, ”)
    #3 /home/wayofplea/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Installer.php(129): as_schedule_recurring_action(false, 86400, ‘woocommerce_cle…’)
    #4

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @matrixwpdevloper and @shreeglobalgroup

    It sounds like another of your plugins or your theme may be conflicting with WooCommerce. You can read more about plugin and theme conflicts in our Self-Service Guide.

    Here’s how you can figure out which one may be causing the problem:

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest to install a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without effecting your current site visitors.

    How to test for conflicts
    In order to test for conflicts using Health Check & Troubleshooting:

    1. Go to Tools > Site Health > Troubleshooting.
    2. Select Enable Troubleshooting Mode. This will disable all your plugins and set your theme to a default one.
    3. Go to Plugins. There you can enable WooCommerce by selecting Enable While Troubleshooting.
    4. Try to reproduce the problem. If the problem is resolved, it’s clearly a conflict. Now we need to figure out which plugin is causing this conflict.
    5. If you can’t reproduce the problem with only WooCommerce enabled, go ahead and re-enable the other plugins one by one. Test after each one until the problem occurs again – this will tell you which plugin is conflicting.
    6. If you are unable to reproduce the problem with the rest of your plugins enabled it could be your theme causing the conflict. To test for this, please enable your original theme at your WordPress Dashboard in the Troubleshooting Mode section at the top (it will look similar to this: https://d.pr/i/bbvkLY). In the Troubleshooting window, you’ll be able to see a dropdown with available themes. Choose the one you normally use. Try reproducing the problem you’re experiencing. If you can reproduce it, your theme is the source of the conflict.

    Once you’ve done that, please check out How to test for plugin and theme conflicts and follow the steps there. Please let us know how that goes.

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @matrixwpdevloper and @shreeglobalgroup

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions or are still running into trouble.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error in WP-Admin page’ is closed to new replies.