Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Critical error - new gravity forms entry #2

Closed
andrebalza opened this issue Oct 6, 2021 · 3 comments · Fixed by #4
Closed

Critical error - new gravity forms entry #2

andrebalza opened this issue Oct 6, 2021 · 3 comments · Fixed by #4
Labels
bug Something isn't working

Comments

@andrebalza
Copy link

andrebalza commented Oct 6, 2021

Hello Juan,
this showed up when the user submitted a gravity forms entry.
The relevant settings: Track Gravity forms: ON, Track server side: ON, Identify: ON
Thanks again for this greatly useful plugin.
Frontend:

There has been a critical error on this website.

Error log:
2021/10/06 06:45:55 [error] 47638#47638: *20903 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught RuntimeException: Error saving action: ActionScheduler_Action::$args too long. To ensure the args column can be indexed, action args should not be more than 8000 characters when encoded as JSON. in /var/www/website.com/htdocs/wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:86
Stack trace:
#0 /var/www/website.com/htdocs/wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action))
#1 /var/www/website.com/htdocs/wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/ActionScheduler_ActionFactory.php(69): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action))
#2 /var/www/website.com/htdocs/wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/functions.php(19): ActionScheduler_ActionFactory->async('async_task', Ar" while reading response header from upstream, client: 192.89.29.225, server: website.com, request: "POST /my-dashboard/article/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php73-two-fpm.sock:", host: "website.com", referrer: "https://website.com/my-dashboard/article/"

@omgwtfwow
Copy link
Owner

Looks like the payload is too large.
Will see what I can do to handle that error.
How big is the form??

@omgwtfwow omgwtfwow added the bug Something isn't working label Oct 6, 2021
@omgwtfwow
Copy link
Owner

Looks like a limitation in Action Scheduler woocommerce/action-scheduler#455 (comment)

I'll patch it to handle the error, but unsure when/whether I'd refactor it to be able to work with large payloads.

@andrebalza
Copy link
Author

The form in question has 33 fields, plus add-ons are active on it (if it matters)
I just noticed that the error kicks in even if the 'Track Gravity forms' is switched off.
Thank you Juan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants