-
Notifications
You must be signed in to change notification settings - Fork 215
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
Fix missing AS missing DB tables issue #4897
Fix missing AS missing DB tables issue #4897
Conversation
@engahmeds3ed If we detect this problem we should display not dismissable error (red) notice as follows: |
@piotrbak Action Scheduler automatically takes care of creating missing tables and displaying a notice for it wp-rocket/inc/Dependencies/ActionScheduler/classes/ActionScheduler_ListTable.php Lines 352 to 371 in 22b9aaf
|
@Tabrisrp From what @engahmeds3ed told me, it's happening only on their admin page. That's why we need to have our own info notice there. Let's talk about this on the standup |
With this last change I did the following:-
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected with the following notes:
- The error will be displayed on all pages except AS
- The error will be displayed even if RUCSS is not enabled
- Fatal error will exist in debug.log while RUCSS is enabled till we click that link in the msg
Hello guys. I am a WP Rocket user and subscriber. I can't find a link to open a support ticket. I had to restore a backup of my blog and now even in the current version of WP Rocket I see an alert: WP Rocket: We detected missing database table related to Action Scheduler. Please visit the following URL to recreate it, as it is needed for WP Rocket to work correctly. I don't know what to do... it looks like this table wasn't created or maybe it got lost when I restored my database. Now that WP Rocket is in the current version... I don't know what to do to solve the problem. |
Ps.: after leaving the plugin active in the latest version, in addition to the alert in the control panel, the site starts showing 504 errors and seems to be related to the database problem. |
You can reach support by sending an email to support@wp-rocket.me What you want to do is to visit the url in this admin notice, which will redirect you to Action Scheduler page like the following:
Note: You need to replace example.org with your site domain. |
Description
In some cases when client updates to our latest version 3.11.0.2, they face fatal error because one or more tables related to Action Scheduler isn't there, the error is like the following:-
Type of change
Please delete options that are not relevant.
Is the solution different from the one proposed during the grooming?
Not groomed.
How Has This Been Tested?
I need to test the queue runner by sending too much jobs from different groups and see if it'll handle our jobs with priority.
To test that you need to delete
wp_actionscheduler_actions
table from the DB and then check the site, with this PR you should see the admin area without a problem but in the log file you will still see the fatal error, but with the next refresh all tables are created and no fatal error should happen.Checklist:
Please delete the options that are not relevant.