-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error after some updates #31
Comments
#metoo |
for now (since I don't need them) I've got round this issue by removing all my @Form($form) calls. I'll keep hunting round and see what I can find to try and resolve this. |
@sdousley and replacing them with ... ? |
nothing at present. literally just commenting them out in the blade template |
Well, that would work of course, but I kind of need those forms 😅 |
Yeah, mine fortunately aren't 100% necesary for my system, just ways to request stuff (it's a personal site anyway). |
hmmm, for some reason, on my local environment, where it works, it's wanting to load Symfony\Bridge\Twig\Form\TwigRenderer, but on live, it's the Symfony\Component\Form\FormRenderer |
Does it work with above patch? Try |
Just tested - and now getting a different error: Target [Twig_LoaderInterface] is not instantiable while building [Barryvdh\Form\FormRenderer, Twig_Environment]. (View: <my_views>/menu.blade.php) (View: <my_views>/menu.blade.php) |
Are you using twig or without twig? |
I'm just doing it all in blade templates - I haven't (knowingly) used twig |
Okay, please try 38c09be |
OK, whilst the previous version stopped working on my dev environment - making testing easier, this issue has now flagged up a new issue - "Template "bootstrap_3_layout.html.twig" is not defined. " This happens on dev and live. |
OK, so I added SymfonyFormProvider to my list of providers, and added the resources/views/form directory, now I'm getting Target [Symfony\Bridge\Twig\Form\TwigRendererEngineInterface] is not instantiable while building [Symfony\Bridge\Twig\Form\TwigRenderer]. |
I've just tested this on completely fresh Laravel 5.5 and 5.4 (using v0.3.7) and both still get this error with absolutely no other modifications. Is there any updates on this? |
OK, I've done a little more investigation on this, and have found that the following package changes allow this package to work:
This requires changing to Laravel 5.4, as some of these packages don't work on 5.5 yet, so whilst this doesn't get it working on 5.5, it does mean that we can't use 5.5. I think the most likely package that means that this can work would be the twig/twig or symfony/twig-bridge downgrade as on the later versions there's a few classes that phpStorm is flagging to me as deprecated |
Did some digging but still got error edit: I'm at Laravel 5.6.7 |
Any solution? (Laravel 5.6.15) |
I performed some updates to my code, and all works perfectly fine in my development environment, but when I pushed it out onto my production environment, I'm seeing the below error:
Unable to load the "Symfony\Component\Form\FormRenderer" runtime in "bootstrap_3_layout.html.twig". (View: /path/to/view.blade.php) (View: /path/to/view.blade.php)
Any ideas why this might be? PHP versions between live and dev are the same, all be it dev is run on centos, where live is on gentoo.
Looks like it's being thrown in vendor/twig/twig/lib/Twig/Environment.php:663.
The text was updated successfully, but these errors were encountered: