Giter VIP home page Giter VIP logo

Comments (18)

sailingdeveloper avatar sailingdeveloper commented on July 18, 2024

#metoo

from laravel-form-bridge.

sdousley avatar sdousley commented on July 18, 2024

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.

sailingdeveloper avatar sailingdeveloper commented on July 18, 2024

@sdousley and replacing them with ... ?

from laravel-form-bridge.

sdousley avatar sdousley commented on July 18, 2024

nothing at present. literally just commenting them out in the blade template

from laravel-form-bridge.

sailingdeveloper avatar sailingdeveloper commented on July 18, 2024

Well, that would work of course, but I kind of need those forms 😅

from laravel-form-bridge.

sdousley avatar sdousley commented on July 18, 2024

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.

sdousley avatar sdousley commented on July 18, 2024

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.

barryvdh avatar barryvdh commented on July 18, 2024

Does it work with above patch? Try 0.4.x@dev

from laravel-form-bridge.

sdousley avatar sdousley commented on July 18, 2024

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.

barryvdh avatar barryvdh commented on July 18, 2024

Are you using twig or without twig?

from laravel-form-bridge.

sdousley avatar sdousley commented on July 18, 2024

I'm just doing it all in blade templates - I haven't (knowingly) used twig

from laravel-form-bridge.

barryvdh avatar barryvdh commented on July 18, 2024

Okay, please try 38c09be

from laravel-form-bridge.

sdousley avatar sdousley commented on July 18, 2024

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.

sdousley avatar sdousley commented on July 18, 2024

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.

sdousley avatar sdousley commented on July 18, 2024

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.

sdousley avatar sdousley commented on July 18, 2024

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.

edwinheij avatar edwinheij commented on July 18, 2024

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.

 avatar commented on July 18, 2024

Any solution? (Laravel 5.6.15)

from laravel-form-bridge.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.