Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite setup looking for wp_2_actionscheduler_actions creates fatal error #1318

Closed
anderslundyo opened this issue May 20, 2020 · 2 comments

Comments

@anderslundyo
Copy link

##πŸšΆβ€β™€οΈ Steps to reproduce
After multisite network setup. Looking for a table that doesnt exist, and creates fatal error.

πŸ—ƒ Logs

Fatal error: Uncaught RuntimeException: Error saving action: Table 'lovechild1979_com_db.wp_2_actionscheduler_actions' doesn't exist in /var/www/www.lovechild1979.com/www/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:75 Stack trace: #0 /var/www/www.lovechild1979.com/www/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action)) #1 /var/www/www.lovechild1979.com/www/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(105): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action)) #2 /var/www/www.lovechild1979.com/www/wp-content/plugins/woocommerce/packages/action-scheduler/functions.php(45): ActionScheduler_ActionFactory->recurring('wc_facebook_reg...', Array, 1589976335, 900, 'facebook-for-wo...') #3 /var/www/www.lovechild1979.com/www/wp-content/plugins/facebook-for-woocommerce/includes/Product in /var/www/www.lovechild1979.com/www/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 75

@anderslundyo
Copy link
Author

Hi. I found out that the tables needs to be created, and while this plugin creates a fatal error, the error just comes elsewhere when deactivating..
Although this fatal error should be fixed, if you're in the same situtation as me, you can go ahead to your database, and export the structure of the missing tables. Before exporting, you can rename the tables so that they fit the missing tables.

Hope this could help someone else.

@lgfogle
Copy link

lgfogle commented Aug 14, 2020

Hey @anderslundyo,

Thanks for sharing what worked for you! I'm going to close this issue, since it looks like you've solved it, but please feel free to reach out again if you run into other issues, or contact our team on the Facebook for WooCommerce forum for further assistance.

Thank you!
Lindsey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants