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

[Symfony 4.2] Twig failed to render the widget #226

Closed
ihortymoshenko opened this issue Apr 23, 2019 · 3 comments
Closed

[Symfony 4.2] Twig failed to render the widget #226

ihortymoshenko opened this issue Apr 23, 2019 · 3 comments

Comments

@ihortymoshenko
Copy link

ihortymoshenko commented Apr 23, 2019

Hi!

I'm updating a project from Symfony 4.1 to Symfony 4.2 and I'm faced with a problem.

Twig can't render the widget and outputs the following:

An exception has been thrown during the rendering of a template ("Notice: Array to string conversion").

The last step in the traceback refers to https://github.com/symfony/twig-bridge/blob/v4.2.7/Resources/views/Form/form_div_layout.html.twig#L432.

It looks like the issue in the form type options. The attr option contains the options key which is an array (the attr option is an associative array with HTML attributes as keys accordingly to the Symfony docs).

Please fix this issue.

Cheers!

@guzzlefry
Copy link

This is still an issue with version 1.5.15 on Symfony 4.3.x.

@sonofliberty
Copy link

@IgorTimoshenko Did you manage to fix this issue in your project? I'm having the same problem.

@icedevelopment
Copy link

icedevelopment commented Apr 14, 2022

see #234 (comment)

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

4 participants