Fatal Error after ativating plugin
-
After activating plugin I see this:
Fatal error: Uncaught RuntimeException: Ошибка при сохранении действия: Ошибка при сохранении действия: Table 'u1204911_WP.wp_actionscheduler_actions' doesn't exist in .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL) #1 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionF in .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44
-
Hello @mike1452 ,
I am sorry to hear about the activation issue.
Can you please run through these tests and let me know how it goes?
1. Switch to a default theme i.e. Twenty Twenty / Storefront
2. Deactivate all plugins and then activate WooCommerce.More details on the conflict test here.
Thank you ??
Thank you for your quick reply.
I did 1 and 2
I switched to a default theme Twenty Twenty,
deactivated all plugins and activated the WOO COMMERCE.The result:
– I still get the same message I posted previously.
Waiting for your next leads on how to solve this issue.
Thanks.Note, please that
Woo commerce was installed, activated, deactivated, uninstalled, deleted some time ago, and reinstalled now.
I compared tables of the installed plugin on my other site with tables of this plugin on the problem site and I see that 5 tables are missing on reinstall. For some reason, they haven’t been created on reinstall.wp_wc_order_stats
wp_wc_order_tax_lookup
wp_wc_product_meta_lookup
wp_wc_reserved_stockMaybe this would give you more info.
Hello @mike1452 ,
Thanks for sharing the update and debugging this further.
The error message is referring to the Action scheduler issue. According to some of the older discussions they got it solved by installing Action Scheduler 3.0 – https://github.com/woocommerce/action-scheduler.
You can also try after increasing the
php_value max_execution_time
as discussed here.It is always important to get in touch with your hosting provider and seek further information on their logs.
If you continue having this problem please share your WordPress debug log – https://www.ads-software.com/support/article/debugging-in-wordpress/#wp_debug_log
Thank you ??
Thank you for reply.
1. We have changed the time settings,
2. We installed action-schedulerThe result: the same error
Here is debug report from debag.log of our site.
We changed it just to hide site’s folders.Stack trace: #0 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL) #1 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionF in .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44 [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_actions' doesn't exist for query SELECT COUNT(DISTINCT claim_id) FROM wp_actionscheduler_actions WHERE claim_id != 0 AND status IN ( 'pending', 'in-progress') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches, ActionScheduler_HybridStore->get_claim_count, ActionScheduler_DBStore->get_claim_count [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_actions' doesn't exist for query SELECT a.action_id FROM wp_actionscheduler_actions a WHERE 1=1 AND a.status='pending' AND a.scheduled_date_gmt <= '2021-04-04 17:55:00' ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 5 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Store->has_pending_actions_due, ActionScheduler_HybridStore->query_actions, ActionScheduler_DBStore->query_actions [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_actions' doesn't exist for query SELECT a.action_id FROM wp_actionscheduler_actions a LEFT JOIN wp_actionscheduler_groups g ON g.group_id=a.group_id WHERE 1=1 AND g.slug='woocommerce-db-updates' AND a.hook='woocommerce_run_update_callback' AND a.status='pending' AND (a.hook LIKE '%[\"wc_admin_update_170_homescreen_layout\"]%' OR (a.extended_args IS NULL AND a.args LIKE '%[\"wc_admin_update_170_homescreen_layout\"]%') OR a.extended_args LIKE '%[\"wc_admin_update_170_homescreen_layout\"]%') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::maybe_update_db_version, Automattic\WooCommerce\Admin\Install::update, WC_Action_Queue->search, as_get_scheduled_actions, ActionScheduler_HybridStore->query_actions, ActionScheduler_DBStore->query_actions [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_actions' doesn't exist for query SELECT a.action_id FROM wp_actionscheduler_actions a LEFT JOIN wp_actionscheduler_groups g ON g.group_id=a.group_id WHERE 1=1 AND g.slug='woocommerce-db-updates' AND a.hook='woocommerce_run_update_callback' AND a.status='complete' AND (a.hook LIKE '%[\"wc_admin_update_170_homescreen_layout\"]%' OR (a.extended_args IS NULL AND a.args LIKE '%[\"wc_admin_update_170_homescreen_layout\"]%') OR a.extended_args LIKE '%[\"wc_admin_update_170_homescreen_layout\"]%') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::maybe_update_db_version, Automattic\WooCommerce\Admin\Install::update, WC_Action_Queue->search, as_get_scheduled_actions, ActionScheduler_HybridStore->query_actions, ActionScheduler_DBStore->query_actions [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_groups' doesn't exist for query SELECT group_id FROM wp_actionscheduler_groups WHERE slug='woocommerce-db-updates' made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::maybe_update_db_version, Automattic\WooCommerce\Admin\Install::update, WC_Action_Queue->schedule_single, as_schedule_single_action, ActionScheduler_ActionFactory->single, ActionScheduler_ActionFactory->store, ActionScheduler_HybridStore->save_action, ActionScheduler_DBStoreMigrator->save_action, ActionScheduler_DBStore->save_action, ActionScheduler_DBStore->get_group_id [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_groups' doesn't exist for query SHOW FULL COLUMNS FROM <code>wp_actionscheduler_groups</code> made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::maybe_update_db_version, Automattic\WooCommerce\Admin\Install::update, WC_Action_Queue->schedule_single, as_schedule_single_action, ActionScheduler_ActionFactory->single, ActionScheduler_ActionFactory->store, ActionScheduler_HybridStore->save_action, ActionScheduler_DBStoreMigrator->save_action, ActionScheduler_DBStore->save_action, ActionScheduler_DBStore->get_group_id, ActionScheduler_DBStore->create_group [04-Apr-2021 17:55:00 UTC] WordPress database error Table 'db_WP.wp_actionscheduler_actions' doesn't exist for query SHOW FULL COLUMNS FROM <code>wp_actionscheduler_actions</code> made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::maybe_update_db_version, Automattic\WooCommerce\Admin\Install::update, WC_Action_Queue->schedule_single, as_schedule_single_action, ActionScheduler_ActionFactory->single, ActionScheduler_ActionFactory->store, ActionScheduler_HybridStore->save_action, ActionScheduler_DBStoreMigrator->save_action, ActionScheduler_DBStore->save_action [04-Apr-2021 17:55:00 UTC] PHP Fatal error: Uncaught RuntimeException: Error saving action: Error saving action: Table 'db_WP.wp_actionscheduler_actions' doesn't exist in .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL) #1 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action)) #3 .../wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44
Thank you for your assistance.
-
This reply was modified 3 years, 11 months ago by
mike1452.
We found both an explanation and the solution here:
https://rankmath.com/kb/fatal-error-after-1-0-49-update/Thanks for giving clues. ??
Awesome!
I am glad that it was helpful and thanks for sharing the solution. I am sure others will also find the information useful. If you have any other queries, feel free to open a new thread.
Thank you ??
-
This reply was modified 3 years, 11 months ago by
- The topic ‘Fatal Error after ativating plugin’ is closed to new replies.