[Resolved] Twig git submodule interferes with local VCS
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I use Git to track all code (core, plugins, themes) in my WordPress install, and the repository is hooked into a CI server for deployment to dev, staging, and production servers.
When trying to activate the Layouts plugin on my dev server after a CI build, I got errors stemming from missing Twig library files. I finally tracked it down to the use of a Git submodule in the vendor library folder within the plugin. The submodule files were not pushed to my repository, and therefore didn't make it to the server.
I would not normally want to independently update a submodule that has not been tested with the plugin, but rather use the version that has been validated and packaged by you. In that regard, I don't think the layouts/vendor/twig/twig/.git folder should be in the official release.
Can advise on the expected handling of the submodule if this is intentional?
Just bought and installed the Toolset. I'm having error messages referring to "layouts/vendor/twig" too ... just after activating the Layout module.
Warning: Wrong parameter count for class_alias() in ../wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/LoaderInterface.php on line 57
Warning: Wrong parameter count for class_alias() in ../wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 290
Warning: Wrong parameter count for class_alias() in ../public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Environment.php on line 1563
Warning: Wrong parameter count for class_alias() in ../public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/CacheInterface.php on line 58
Warning: Wrong parameter count for class_alias() in ../public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Cache/Null.php on line 40
Warning: Wrong parameter count for class_alias() in ../public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/ExtensionInterface.php on line 89
Warning: Wrong parameter count for class_alias() in ../public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Extension.php on line 67
Warning: Wrong parameter count for class_alias() in /public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1612
Warning: Wrong parameter count for class_alias() in /public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Extension/Escaper.php on line 112
Warning: Wrong parameter count for class_alias() in /public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Extension/Optimizer.php on line 35
Warning: Wrong parameter count for class_alias() in /public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/Extension/Staging.php on line 112
Warning: Wrong parameter count for class_alias() in /public_html/wp-content/plugins/layouts/vendor/twig/twig/lib/Twig/SimpleFunction.php on line 111