Open CrochetFeve0251 opened 1 year ago
@CrochetFeve0251 thanks for the PR. Can see the error on the PR with the following steps: (can you please check) precondition: manually delete AS tables from database 1- fresh install and activation of imagify 2- add keys => error appeared although it's valid 3- open imagify settings https://new.rocketlabsqa.ovh/wp-admin/options-general.php?page=imagify => error in logs `[24-May-2023 14:52:49 UTC] PHP Fatal error: Uncaught RuntimeException: Unable to claim actions. Database error. in /var/www/new.rocketlabsqa.ovh/htdocs/wp-content/plugins/imagify-plugin/inc/Dependencies/ActionScheduler/classes/data-stores/ActionScheduler_DBStore.php:938 Stack trace:
thrown in /var/www/new.rocketlabsqa.ovh/htdocs/wp-content/plugins/imagify-plugin/inc/Dependencies/ActionScheduler/classes/data-stores/ActionScheduler_DBStore.php on line 938` @piotrbak please advise if we need to recreate the tables :pray:
Note: we won't be able to delete the plugin in this case from plugins list
@CrochetFeve0251 Aren't we checking the AS tables when installing/updating the WP Rocket? 🤔
Fix the issue due to the Runtime exception raised by Action Scheduler when the tables are not present.
Fix #720