-
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
Error saving action: ActionScheduler_Action::$args
too long
#855
base: trunk
Are you sure you want to change the base?
Conversation
Closes woocommerce#851 PHP Fatal error: Uncaught RuntimeException: Error saving action: ActionScheduler_Action::$args too long
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.
Thanks for putting this together, @saad-siddique.
- In a related conversation, there was discussion of using a hash to keep performance snappy: I think there is a lot of merit in adding that (but let me know if you considered this and found it was unnecessary or unhelpful).
- Even if we move ahead without hashing, we would need various other changes. For example, this change would represent a new schema version and the change to existing method
update_schema_5_0
won't be "seen" by installations where the schema is already up-to-date.
Hi @barryhughes , Thank you for taking the time to look at the issue. Thank you for suggesting the My main reason not to use the hash method is that instead of storing the Action Scheduler's related Based on your comment above, I've updated the schema to Please let me know if anything else needs to be updated. |
Yep, I agree that wouldn't be ideal. Though, my reading of the conversation ("you could keep args as json encoded/serialized in a new meta field") was not that we would necessarily depend on core WordPress tables to store the full length args (which, of course, is currently possible even without this change). In any case, I wanted to let you know we haven't lost sight of this change—but there are a few other items we're prioritizing right now, so there might be a further delay before we can really tackle this one. |
Following up to add 2¢ that I for one would appreciate seeing a robust solution for longer stored values to improve performance and stability relative to the hash method mentioned above. Thanks to all. |
Closes #851
PHP Fatal error: Uncaught RuntimeException: Error saving action: ActionScheduler_Action::$args too long