Error saving action: ActionScheduler_Action::$args too long#855
Error saving action: ActionScheduler_Action::$args too long#855saad-siddique wants to merge 7 commits intowoocommerce:trunkfrom
ActionScheduler_Action::$args too long#855Conversation
Closes woocommerce#851 PHP Fatal error: Uncaught RuntimeException: Error saving action: ActionScheduler_Action::$args too long
barryhughes
left a comment
There was a problem hiding this comment.
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_0won'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