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

Exception on form rendering when using Synfony 4 build-in Bootstrap 4 form support #179

Open
mathiasstocker opened this issue May 6, 2018 · 3 comments

Comments

@mathiasstocker
Copy link

Your bundle works great so far, i only have problems when i set the bootstrap 4 form theme as described here:
https://symfony.com/doc/current/form/bootstrap4.html

The form field was set like this:

->add('mobile', PhoneNumberType::class, array('widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'preferred_country_choices' => array('CH')))

When the page is rendered i got the following exception:
An exception has been thrown during the rendering of a template ("Notice: Array to string conversion").

Would be great to have this fixed or to provide me a workaround to this.

@mathiasstocker
Copy link
Author

Forked your repo and found the problem.
Add a fix in a pull request #180

@iBasit
Copy link

iBasit commented Jun 2, 2018

I'm getting this error on symfony v3.4, after upgrading

@crazyball
Copy link

Please merge this pull request, really need this update ! Same as iBasit, error after 3.4 and bootstrap form theme declaration must be in config file not declared in template to work.

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

3 participants