Closed surajv closed 3 years ago
Hi @surajv,
Thank you for reporting the issue. According to the error message, it seems to be caused by the Action Scheduler which is being developed in another repository: https://github.com/woocommerce/action-scheduler.
I am going to move your bug report there so that the right team could take a look further.
Hi @surajv,
Can you please check your database and see if the table mydbname.myprefix_actionscheduler_actions
exists?
Thanks!
Hi Roy,
In most of the single installations, all the tables were present, but for some reason, value for this option schema-ActionScheduler_StoreSchema
was not updating to the latest AS version, so we asked our users to use this onetime code:
add_action( 'init', function() { delete_option( 'schema-ActionScheduler_StoreSchema' ); } );
And it resolved the issue.
Please note, all of these single installations were not using WooCommerce, but Action Schedular tables were added by some other plugins which are using this library.
There were some other issues like missing tables on multisite etc., for that, we had to write a custom script which adds those tables, please refer to this solution: https://rankmath.com/kb/fatal-error-after-1-0-49-update/
Thanks for the additional information. Do you happen to know what version is stated in the options table for schema-ActionScheduler_StoreSchema
on the sites that had this problem?
Hi @roykho, sorry for the late reply, it was like 3.0.1607082479
Closing (as essentially the same thing is captured in #653).
Thank you all for this informative space. I ran into this now. I am facing this challenge today and i am just starting up on website creation and coding.
This is the error code also,
Fatal error: Uncaught RuntimeException: Error saving action: Error saving action: INSERT command denied to user 'u762617409_g1bbc'@'127.0.0.1' for table 'wp_actionscheduler_actions' in /home/u762617409/domains/bimcotrade.com/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /home/u762617409/domains/bimcotrade.com/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL) #1 /home/u762617409/domains/bimcotrade.com/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2 /home/u762617409/domains/bimcotrade.com/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactor in /home/u762617409/domains/bimcotrade.com/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44
Hi everybody, i have a problem with my Multi website, since my update of woocommerce, i have a fatal error... I tried to install Snippets and Action Scheduler but each time the fatal error come again... like this :
Fatal error: Uncaught RuntimeException: Error saving action: Error saving action: INSERT command denied to user 'o3489363'@'infong-eu183.clienthosting.eu' for table 'wp_11_actionscheduler_actions' in /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL) #1 /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/ActionScheduler_ActionFactory.php(244): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2 /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/ActionScheduler_ActionFactory.php(114): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action)) #3 /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/functions.php(81): ActionScheduler_ActionFactory->single_unique('action_schedule...', Array, 1676457678, 'action-schedule...', false) #4 /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/migration/Scheduler.php(89): as_schedule_single_action(1676457678, 'action_schedule...', Array, 'action-schedule...') #5 /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/migration/Controller.php(119): Action_Scheduler\Migration\Scheduler->schedule_migration() #6 /homepages/0/d471927047/htdocs/wp-includes/class-wp-hook.php(307): Action_Scheduler\Migration\Controller->schedule_migration('') #7 /homepages/0/d471927047/htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #8 /homepages/0/d471927047/htdocs/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #9 /homepages/0/d471927047/htdocs/wp-settings.php(609): do_action('wp_loaded') #10 /homepages/0/d471927047/htdocs/wp-config.php(99): require_once('/homepages/0/d4...') #11 /homepages/0/d471927047/htdocs/wp-load.php(50): require_once('/homepages/0/d4...') #12 /homepages/0/d471927047/htdocs/wp-admin/admin.php(34): require_once('/homepages/0/d4...') #13 /homepages/0/d471927047/htdocs/wp-admin/plugins.php(10): require_once('/homepages/0/d4...') #14 {main} thrown in /homepages/0/d471927047/htdocs/wp-content/plugins/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44
i used Wordpress 5.9.5 and i am lost Help me please Florent
@andymoorey2k, @florentchouzy: this issue is now closed, and so it would be appreciated if you could create a new issue.
I would also note it may not be the case that this is the same problem: unless you have identified that the table in question is actually missing, this may in fact be a permissions/grants problem and the solution will be to provide your database user with the necessary privileges to interact with the actions table. If you are unsure how to do this, I recommend speaking with your web host for further assistance.
Other than that, if you need more help from us we'd be happy to look at these situations in more detail—but, again, please create a new issue for that :-)
Hello, I have a similar problem, I have a WordPress and yesterday the website stopped working and this message started appearing through the Woocomerce plugins. I hope you can help me
Fatal error: Uncaught RuntimeException: Error al guardar la acción: Error al guardar la acción: Unknown column 'priority' in 'field list' in /home/orbits/orbitsstore.cl/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /home/orbits/orbitsstore.cl/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action() #1 /home/orbits/orbitsstore.cl/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(327): ActionScheduler_HybridStore->save_action() #2 /home/orbits/orbitsstore.cl/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(315): ActionScheduler_ActionFactory->store() #3 /home/orbits/orbitsstore.cl/wp-content/plugins/woocommerce/packages/action-scheduler/functions.php(102): ActionScheduler_ActionFactory->create() #4 /home/orbits/orbitsstore.cl/wp-content/pl in /home/orbits/orbitsstore.cl/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44 Ha habido un error crítico en esta web. Por favor, comprueba la bandeja de entrada del correo electrónico del administrador de tu sitio para obtener instrucciones.
Thanks for creating a fresh issue for this, @lakayanzz.
When activating WooCommerce on specific websites, it is throwing a fatal error, making websites inaccessible.
Prerequisites (mark completed items with an [x]):
Describe the bug The following fatal error is being thrown when someone tries to activate the WooCommerce plugin:
Fatal error: Uncaught RuntimeException: Error saving action: Error saving action: Table 'mydbname.myprefix_actionscheduler_actions' doesn't exist in /mypath/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44
User has to use FTP to delete the plugin files to restore the website to a working state.Expected behavior The fatal error should not be happening.
Actual behavior A clear and concise description of what actually happens. Please be as descriptive as possible;
Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.) Steps to reproduce the bug:
Isolating the problem (mark completed items with an [x]):
WordPress Environment WooCommerce wasn't getting enabled but here's the system report