You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception has been thrown during the rendering of a template ("Template name "/media/Storage/backed-up-storage/work/picofnet/website/website/app/../src/Picof/BaseBundle/Resources/public/components/requirejs/requirejs" contains invalid characters.") in HearsayRequireJSBundle::initialize.html.twig at line 46.
The fix is easy. The RequireJSHelper::src() method should first check if the file is supported by the rendering engine, and only then check if it exists. Not the other way around like it is doing now.
I'm going to do a pull request, if that's alright.
Thanks!
The text was updated successfully, but these errors were encountered:
Actually it seems that the lines also need to be wrapped up in a try-catch block, because $this->engine->supports is throwing an InvalidArgumentException.
liviucmg
changed the title
RequireJSHelper.php engine support check
Fix src() method in RequireJSHelper.php
Apr 20, 2014
Hi there,
I'm using PHP templates instead of Twig templates, and when initializing RequireJS using
I get the following error:
Doesn't matter whether I use the default file
or a custom file
The fix is easy. The RequireJSHelper::src() method should first check if the file is supported by the rendering engine, and only then check if it exists. Not the other way around like it is doing now.
I'm going to do a pull request, if that's alright.
Thanks!
The text was updated successfully, but these errors were encountered: