• Resolved Mike Crantea

    (@mihai2u)


    I found this in the changelog:
    * added Twig_BaseNodeVisitor to ease the compatibility of node visitors
    on version 1.20.0

    and seems related to the error I got after doing the last update of Timber to version 0.22.0

    I did a search for “Twig_BaseNodeVisitor” in the plug-in and the only occurrences were of this type:
    class X extends Twig_BaseNodeVisitor
    but I did not see any Twig_BaseNodeVisitor being defined somewhere, and that’s why I think this is failing.

    I’m investigating now while trying out older versions to isolate where this error came up from and report back with more info.

    https://www.ads-software.com/plugins/timber-library/

Viewing 1 replies (of 1 total)
  • Thread Starter Mike Crantea

    (@mihai2u)

    The issue actually came up from a failed update in the vendor dependencies.
    The ‘vendor’ folder was missing completely due to it being present in the ‘.gitignore’.
    So if you’re not having composer on your server and instead push the updates to your environment via git, you’ll end up missing all of the necessary libraries.

    The twig_basenodevisitor was just the first thing encountered to be missing and therefore triggering the error, but the fault was the vendor folder altogether.

    So make sure your vendor is populated on the server as well – not only on the local environment.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Class 'Twig_BaseNodeVisitor' not found in Escaper.php’ is closed to new replies.