Comments (23)
This is quite a confusing error, since this only happens when the bundle for a template is null
.
I need some more information to help you there.
- The complete stack trace of the error
- The code from your action-Method
- Your bower config
- Your symfony config
Thanks in advance
from spbowerbundle.
We just ran into the same issue upgrading from Symfony 2.5.8 to 2.5.9. Reverting back to 2.5.8. cured the problem for us.
from spbowerbundle.
I've ran into the same issue after accidental upgrade to 2.5.9
from spbowerbundle.
I only tested this with 2.6.* will take a look into this.
from spbowerbundle.
I'm still not able to reproduce it. Please be so kind and post the following information:
- The complete stack trace of the error
- Your
bower.json
- Your symfony config
- Your
composer.json
from spbowerbundle.
I think It is related with this PR which was taken into the latest version of 2.3.24, 2.5.9 and the newest 2.6.* branches symfony/symfony#12894
as @stof mentioned in https://github.com/symfony/AsseticBundle/issues/331 there is fix for that in dev version of AsseticBundle
fix for that should be to use only bundle:folder:template.format.engine
notation when including templates
from spbowerbundle.
Ah I see. Good to know I didn't broke something :)
from spbowerbundle.
in my case the problem was that I used correctly extending main template as
{% extend '::layout.html.twig' %}
but in that file (provided in app/Resources/views/
) i had this code:
{% extends app.user ? "base_secure.html.twig" : "base.html.twig" %}
It works before, now It require to have the bundle notation like
{% extends app.user ? "::base_secure.html.twig" : "::base.html.twig" %}
@davepowell check your code for similar usage
from spbowerbundle.
The same problem after updating from 2.5 to 2.6.3
app/console twig:lint src
{% block javascripts %}
{{ parent() }}
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script>
{% javascripts
'@WorkDefaultBundle/Resources/public/js/chat_client.js'
filter='uglifyjs2' %}
<script src="{{ static_img_url }}{{ asset_url }}"></script>
{% endjavascripts %}
{% endblock %}
# Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
globals:
static_img_url: %static_img_url%
# Assetic Configuration
assetic:
debug: %kernel.debug%
use_controller: false
bundles: [ WorkDefaultBundle, WorkMobileBundle, TwigBundle ]
filters:
uglifyjs2:
bin: /usr/local/bin/uglifyjs
uglifycss:
bin: /usr/local/bin/uglifycss
from spbowerbundle.
I think for the {% javascripts %}
tag (and perhaps for {% stylesheets %}
) the only solution is to take the dev version of symfony/assetic bundle (composer require symfony/assetic-bundle:~2.5-dev
) as the change that fix this issue is not yet merged into stable version
from spbowerbundle.
Great. Thank you. It works. (and for stylesheets too)
from spbowerbundle.
Thank you! Hopefully they merge it in stable soon.
from spbowerbundle.
Same issue when update 2.6.1 => 2.6.3
workaround is
"symfony/symfony": "~2.6",
"symfony/assetic-bundle": "dev-master",
from spbowerbundle.
Just an observation. I ran into the same problem today (Symfony v2.3.34, Assetic v1.1.1, AsseticBundle v2.3.0), but "resolved" it by using the <Bundle>:<Folder>:<template>
notation for referencing the template (in the controller) instead of @<Bundle>/<Folder>/<template>
.
from spbowerbundle.
use the dev version of AsseticBundle (the master branch) to get the fixed version. I will release it this evening
from spbowerbundle.
I got the same error after uppgrading from 2.5.8 to 2.5.9, it appears in console when I try to use the translation:update command.
Using assetic dev-master version did not fix it (in addition using dev-master versions is considered as a critical violation according to sensio insight)
from spbowerbundle.
@ousmaneNdiaye AsseticBundle 2.6.0 and 2.6.1 have been released in the meantime
from spbowerbundle.
And I was talking about the AsseticBundle version, not the Assetic version
from spbowerbundle.
@stof ok Thank you I will check it out.
from spbowerbundle.
@stof, and for the 2.3.* branch ? There are some updates ?
from spbowerbundle.
@seb2411 no, because the 2.6 version of AsseticBundle is compatible with Symfony 2.3+ so I'm not maintaining multiple branches in parallel. People should just update to the latest version.
from spbowerbundle.
how to upgrade the symfony version
from spbowerbundle.
Since this issue is fixed, I'm going to close this ticket
from spbowerbundle.
Related Issues (20)
- RuntimeException: An error occured while installing dependencies HOT 3
- Does SpBowerBundle let users handle dependency conflicts? HOT 5
- How I can start bower postinstall scripts HOT 1
- Avoid including some files HOT 1
- Lock file? HOT 4
- Deploying on a server without bower HOT 2
- Installing bower dependancies for the project HOT 2
- Heroku - Dependency cache keys not yet generated HOT 3
- Bower runtime exception HOT 4
- Asset q_js not found HOT 1
- Cache:clear fails when github.com is not available HOT 2
- Latest Dev Now Requires Symfony 2.8 HOT 4
- bootstrap css not being installed HOT 6
- Dependency cache keys not yet generated due to absolute path to the bundle
- Composer complaining when using with Symfony 3 HOT 3
- Update to Symfony 3.1 Please HOT 2
- How to define sp_bower - binary path undepending of its environment HOT 2
- Tag latest version of master
- PHP files are written in public directory
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 spbowerbundle.