Event error "Argument 1 passed to SectionEvent::__doit() must be of the type array"
This is an open discussion with 3 replies, filed under General.
Search
Has the frontend markup changed? There's a chance that no data is being passed from the frontend anymore.
@brendo I've fixed this error for Stuart, but I still think it's a bug in Symphony (at least needs a user-friendly error)
Apparently he changed the events to support multiple, however he didn't change the frontend to reflect that. So when he was sending a single form using <input name='fields[name]'/>
it throws the above error making the fields into an array or removing the multiple resolves the above issue.
Ah, I see, I've pushed a commit to the 2.6.x branch for 2.6.2 that should handle this better :) Thanks for the heads up!
Create an account or sign in to comment.
Hi
I have an event giving me this error. The event has been working until now and I can't figure out how I might have broken it.
Does anyone have any ideas of how to debug the error?
Many thanks :-)