Comments (18)
#metoo
from laravel-form-bridge.
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.
from laravel-form-bridge.
@sdousley and replacing them with ... ?
from laravel-form-bridge.
nothing at present. literally just commenting them out in the blade template
from laravel-form-bridge.
Well, that would work of course, but I kind of need those forms 😅
from laravel-form-bridge.
Yeah, mine fortunately aren't 100% necesary for my system, just ways to request stuff (it's a personal site anyway).
from laravel-form-bridge.
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
from laravel-form-bridge.
Does it work with above patch? Try 0.4.x@dev
from laravel-form-bridge.
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)
from laravel-form-bridge.
Are you using twig or without twig?
from laravel-form-bridge.
I'm just doing it all in blade templates - I haven't (knowingly) used twig
from laravel-form-bridge.
Okay, please try 38c09be
from laravel-form-bridge.
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.
from laravel-form-bridge.
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].
from laravel-form-bridge.
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?
from laravel-form-bridge.
OK, I've done a little more investigation on this, and have found that the following package changes allow this package to work:
- Updating doctrine/inflector (v1.2.0 => v1.1.0): Downloading (100%)
- Updating erusev/parsedown (1.6.4 => 1.6.1): Downloading (100%)
- Updating league/flysystem (1.0.41 => 1.0.34): Downloading (100%)
- Updating monolog/monolog (1.23.0 => 1.22.0): Downloading (100%)
- Updating mtdowling/cron-expression (v1.2.1 => v1.2.0): Downloading (100%)
- Updating paragonie/random_compat (v2.0.11 => v2.0.4): Downloading (100%)
- Updating ramsey/uuid (3.7.1 => 3.5.2): Downloading (100%)
- Updating swiftmailer/swiftmailer (v6.0.2 => v5.4.5): Downloading (100%)
- Updating symfony/polyfill-mbstring (v1.6.0 => v1.3.0): Downloading (100%)
- Updating symfony/debug (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/console (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/css-selector (v3.4.0 => v3.1.10): Downloading (100%)
- Updating symfony/finder (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/http-foundation (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/event-dispatcher (v4.0.0 => v3.2.3): Downloading (100%)
- Updating symfony/http-kernel (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/options-resolver (v4.0.0 => v3.2.3): Downloading (100%)
- Updating symfony/polyfill-intl-icu (v1.6.0 => v1.3.0): Downloading (100%)
- Updating symfony/intl (v4.0.0 => v3.2.3): Downloading (100%)
- Updating symfony/process (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/polyfill-php70 (v1.6.0 => v1.3.0): Downloading (100%)
- Updating symfony/inflector (v4.0.0 => v3.2.3): Downloading (100%)
- Updating symfony/property-access (v4.0.0 => v3.2.3): Downloading (100%)
- Updating symfony/routing (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/translation (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/var-dumper (v3.4.0 => v3.2.3): Downloading (100%)
- Updating fzaninotto/faker (v1.7.1 => v1.6.0): Downloading (100%)
- Updating twig/twig (v2.4.4 => v2.1.0): Downloading (100%)
- Updating symfony/validator (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/twig-bridge (v3.4.0 => v3.2.3): Downloading (100%)
- Updating symfony/form (v3.4.0 => v3.2.3): Downloading (100%)
- Updating laravel/framework (v5.5.22 => v5.4.9): Downloading (100%)
- Removing barryvdh/laravel-form-bridge (dev-master 38c09be)
- Installing barryvdh/laravel-form-bridge (dev-master 350b9f6): Downloading (100%)
- Installing symfony/dom-crawler (v3.1.10): Downloading (100%)
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
from laravel-form-bridge.
Did some digging but still got error "Template "bootstrap_3_layout.html.twig" is not defined. (View: ... )"
thrown at vendor/twig/twig/lib/Twig/Loader/Chain.php
line 86.
edit: I'm at Laravel 5.6.7
from laravel-form-bridge.
Any solution? (Laravel 5.6.15)
from laravel-form-bridge.
Related Issues (17)
- suggestion for syntax HOT 4
- Error with view rendering HOT 7
- Laravel validation HOT 14
- Phpstorm syntax highlighting for blade directive HOT 6
- Twig caching HOT 5
- Directives not work HOT 2
- The option "constraints" does not exist.
- Nested form types validation HOT 1
- Form types extensions doesn't work HOT 2
- Use blade instead of twig HOT 1
- PHP 7.4 - not using Template HOT 1
- Whole form is rendered, even though just one row is called HOT 2
- Change form template on the fly
- Array Validations not showing in twig
- Cache does not refresh after template changes?
- Laravel 9 support? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-form-bridge.