stream icon indicating copy to clipboard operation
stream copied to clipboard

Gravity Forms - Error Saving form

Open mrgrt opened this issue 2 years ago • 2 comments
trafficstars

Bug Report

Expected Behavior

Save Gravity form without any errors.

Actual Behavior

Save Gravity Form and get an error "There was an error saving your form. To avoid losing your work, click the Save button to save your form and reload the page."

Screenshot 2023-08-21 at 09 01 30

Steps to Reproduce the Problem

  1. Go to Gravity Form
  2. Hit Save to update the form
  3. Error shows
  4. We have deactivated all other plugins except stream and gravity forms and switched to a default theme.

Screenshots/Error logs

1214385e-3d07-11ee-a417-ae828adb7371

System Information

  • Stream plugin version: 3.9.3
  • WordPress version: 6.3
  • PHP version: 8.0
  • Browser: Chrome 115
  • Computer operating system: macOS (Ventura)

mrgrt avatar Aug 21 '23 13:08 mrgrt

Thanks for reporting the issue @mrgrt!

The problem appears to be caused by the gravity forms save handler here:

https://github.com/xwp/stream/blob/4fb568dcc82bd8a7102e74c2a60fa5cd9493216c/connectors/class-connector-gravityforms.php#L227-L242

setting some expected placeholder data for the $message variable (first argument passed to this method):

https://github.com/xwp/stream/blob/4fb568dcc82bd8a7102e74c2a60fa5cd9493216c/classes/class-connector.php#L170

which is not matching up with the argument list passed to the logger:

https://github.com/xwp/stream/blob/4fb568dcc82bd8a7102e74c2a60fa5cd9493216c/classes/class-log.php#L139

Could it be that your form name or any of the data contains the % character? Could you please share the exact form setup to help replicate the issue?

kasparsd avatar Aug 21 '23 19:08 kasparsd

Related: https://github.com/xwp/stream/issues/1443

ocean90 avatar May 03 '24 15:05 ocean90

Related: https://github.com/xwp/stream/issues/1489

tharsheblows avatar Jul 16 '24 17:07 tharsheblows