-
Notifications
You must be signed in to change notification settings - Fork 14
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
array_key_exists(): Argument #2 ($array) must be of type array, string given in FileParameterBag Description #86
Comments
Even if the original error is fixed (by #84) you will still get a |
I have Contao 4.13.52 and MP_Form 5.2.0 and also run into the error of #84 If I turn I have inserted a dump before the
``In the form I have the normal upload field and not the FineUploader. |
see issue terminal42#86 (comment) It would be nice if the UT would also check this.
How can the error be solved? I am using a customer installation with Contao 4.13.50 and mp-forms 5.2.0. This is the complete error message:
|
Should be fixed with 5.2.1, I guess? |
While working with file uploads in Contao 4.13 using the Terminal42\mp_forms-Bundle (5.2.0), I encountered an issue where the array_key_exists() function throws an error because it is given a string instead of an array. This issue occurs in the set method of the FileParameterBag class.
To reproduce:
My case was a checkbox-menu that (thanks to conditionalFormFields) showed the user two input fields based on the checkbox-selection, a text box and a file-upload-widget. When trying to upload a file, upon clicking next, I'm getting the following error:
The text was updated successfully, but these errors were encountered: