-
Notifications
You must be signed in to change notification settings - Fork 117
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
Problems when db user cannot create or alter tables #973
Comments
I finally success to install WP CLI and run the command for manually update ActionScheduler : and everything works !! |
Same here. My whole WP site was down because the SQL trying inserting a new row with field It seems no straightforward way to fix it, including disabling all plugin and installing Action Scheduler plugin directly. But I finally got it fixed by running a manual DB DDL (actually just |
Hi @thomasgaillard would you mind sharing the CLI command to do the manual update? I believe it would be very helpful.
Also I'm a little bit curious why the |
Helo @ULHI-xin, I had an sql error while running the command
Have a good day |
We still need to address this issue for folks who don't have WP CLI. |
The backtrace in the original comment shows WooCommerce is present (which itself periodically ships schema updates). I'm curious why Action Scheduler's updates in particular aren't sticking. |
zd-6568129 and 6613737 |
I'm still having issues after going into ssh as domain user and applying the fix. [root@user1 /]# su user1 I don't think it worked, there's no priority column in the db for wp_actionscheduler_actions. |
Unfortunately, My guess here is that your database user has not been granted the privileges it requires to modify existing tables. Do you have a hosting provider you can turn to for help with this, or are you self-hosting (if so, the references below might be useful)? |
@barryhughes I have root access.. Usually I'd do the db and WordPress from scratch, this time Softaculous. I checked the database user permissions. Gave the user full permissions and ran wp action-scheduler fix-schema again. Priority column appears in the database, WooCommerce enables without error. Thanks a lot. |
zd-6656890 |
zd-6600327 |
Related reports:
|
zd-6693507 |
zd-6707173 |
zd-6746361 |
Another report: #986 |
Heads up that in #1000 we have merged some more defensive error handling to ensure that if we can't update the schema, we don't bubble up that error to produce fatal errors on the site but instead log to the error log. This is a first step to handling this situation, future work might include additional strategies. |
Possible instance of this in 7781794-zen - I've asked them to try the |
The merchant in 7781794-zen shared the following as their non-CLI fix - they simply created the priority column that the site was clamouring for:
|
Yep ... that's a perfectly reasonable approach (in fact, it is essentially what Action Scheduler tries to do, except in various cases it does not have permission). |
Hi there
Some of my Wordpress sites didn't have admin rights on the SQL user side when I upgraded Woocommerce.
I now have fatal errors because the "priority" column in the wp_actionscheduler_actions table was not created when I updated Woocommerce (and therefore ActionScheduler).
How can I manually replay the last two ActionScheduler core updates please?
Manual creation using the sql command given on another workstation doesn't work:
ALTER TABLE
wp_actionscheduler_actions
ADDpriority
TINYINT(3) UNSIGNED NOT NULL DEFAULT '10' AFTERextended_args
;And I want to repatch the whole thing.
I don't have access to WP CLI.
Thanks for your help, I've already spent many hours
The text was updated successfully, but these errors were encountered: