-
Notifications
You must be signed in to change notification settings - Fork 119
PHP Fatal error: Uncaught RuntimeException: Error saving action: ActionScheduler_Action::$args
too long
#851
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
Comments
This really needs to be fixed. Not necessarily by changing the column type, another option would be to implement a separate meta table for scheduler actions, and that does look reasonable enough to me. |
Hi @saad-siddique @bugnumber9, Thanks for taking the time to file this issue. Changing the size of the column is probably not the best way to go, and the alternatives are not so trivial to implement, as described in #418, which basically dealt with this same problem. I understand the workarounds or suggestions in #418 might not be universally applicable, so I'm filing this issue as an enhancement request in the hopes we can get to it soon. Thanks again! |
Closes woocommerce#851 PHP Fatal error: Uncaught RuntimeException: Error saving action: ActionScheduler_Action::$args too long
@jorgeatorres, Thank you for taking the time to reply to this issue. I've created a PR to address this issue here: https://github.com/woocommerce/action-scheduler/pull/855/files. It's a straightforward change, and I don't think |
As far as I've been looking into this, there's more - there's at least |
As a workaround, it might be beneficial to store large data in a different table and then have an ID as part of the argument. You can then fetch this data from the action itself. If we change the type from varchar to text, then it won't be indexable anymore (which seems like some shops do use). |
Hey,
A few of our plugin users (Pro version of the Automator plugin) have reported this issue. We are using v3.4.0 of the Action Scheduler library in our plugin. Has anyone else reported the problem?
Can this hardcoded extended_args
varchar(8000)
limit be changed tolongext
instead?action-scheduler/classes/schema/ActionScheduler_StoreSchema.php
Line 59 in 3fe1e79
The text was updated successfully, but these errors were encountered: