Skip to content
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

Multiple files upload not working #10

Open
comzeradd opened this issue Jul 26, 2024 · 2 comments
Open

Multiple files upload not working #10

comzeradd opened this issue Jul 26, 2024 · 2 comments

Comments

@comzeradd
Copy link

Hi,

When enabling "Multiple Files" on a File field, uploading files doesn't work and raises and exception.

"NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, stdClass given in wp-content/plugins/wp-stateless/lib/classes/compatibility/gravity-forms.php:92"
"Stack trace:"
"#0 wp-content/plugins/wp-stateless/lib/classes/compatibility/gravity-forms.php(92): strpos()"
"#1 wp-includes/class-wp-hook.php(326): wpCloud\StatelessMedia\GravityForm->gform_save_field_value()"
"#2 wp-includes/plugin.php(205): WP_Hook->apply_filters()"
"#3 wp-content/plugins/gravityforms/gravityforms.php(7032): apply_filters()"
"#4 wp-content/plugins/gravityforms/forms_model.php(3488): gf_apply_filters()"
"#5 wp-content/plugins/gravityforms/forms_model.php(3361): GFFormsModel::get_prepared_input_value()"
"#6 wp-content/plugins/gravityforms/forms_model.php(6855): GFFormsModel::create_lead()"
"#7 wp-content/plugins/gravityforms/..."

This is tested with Gravity Forms 2.8.13. I know documentation says latest tested version is 2.7.17.1, but that's a really old version and didn't have that available to test it.

@planv
Copy link

planv commented Jul 26, 2024

Hello @comzeradd

Do you use this Addon WP-Stateless – Gravity Forms Addon https://wordpress.org/plugins/wp-stateless-gravity-forms-addon/ ?

It has compatibility with Gravity Forms plugin version 2.8.9


We will update information here https://stateless.udx.io/addons/gravity-forms/ soon, thanks for pointing this out.

@planv planv added addons and removed addons labels Jul 26, 2024
@comzeradd
Copy link
Author

I just installed the addon and re-tried. I'm still getting a similar error but it's now triggered by the addon code.

"NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, stdClass given in /wp-content/plugins/wp-stateless-gravity-forms-addon/class-gravity-forms.php:93"
"Stack trace:"
"#0 /wp-content/plugins/wp-stateless-gravity-forms-addon/class-gravity-forms.php(93): strpos()"
"#1 /wp-includes/class-wp-hook.php(326): SLCA\GravityForms\GravityForms->gform_save_field_value()"
"#2 /wp-includes/plugin.php(205): WP_Hook->apply_filters()"
"#3 /wp-content/plugins/gravityforms/gravityforms.php(7032): apply_filters()"
"#4 /wp-content/plugins/gravityforms/forms_model.php(3488): gf_apply_filters()"
"#5 /wp-content/plugins/gravityforms/forms_model.php(3361): GFFormsModel::get_prepared_input_value()"
"#6 /wp-content/plugins/gravityforms/forms_model.php(6855): GFFormsModel::create_lead()"
"#7 /wp-content/plugins/gravityforms/incl..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants