8000 Template Error · Issue #13311 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000

Template Error #13311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trsteel88 opened this issue Jan 8, 2015 · 12 comments
Closed

Template Error #13311

trsteel88 opened this issue Jan 8, 2015 · 12 comments

Comments

@trsteel88
Copy link
Contributor

Since updating from v2.6.1 to v2.6.3 I am getting the following exception:

An exception has been thrown during the compilation of a template ("The template does not support the "bundle" parameter.") in "@AcmeDemo/template.html.twig".

template.html.twig extends:

{% extends 'base.html.twig' %}

May relate to a835b18, #12894, https://github.com/symfony/AsseticBundle/issues/331

@trsteel88
Copy link
Contributor Author

fyi, this is occurring on v2.6.3 on the Symfony Standard version as well.

To replicate install https://github.com/symfony/symfony-standard v2.6.3

Go to "/app/example" and the page will display.

Now, open base.html.twig and change:

{% block stylesheets %}{% endblock %}

to:

{% block stylesheets %}
    {% stylesheets filter='cssrewrite,?yui_css'
        'bundles/framework/css/body.css'
    %}
        <link rel="stylesheet" href="{{ asset_url }}" />
    {% endstylesheets %}
{% endblock stylesheets %}

You will now get the error.

@fabpot
Copy link
Member
fabpot commented Jan 8, 2015

Have you tried to use the latest version of Assetic as @stof mentioned that he fixed the issue?

@trsteel88
Copy link
Contributor Author

@fabpot, there was a commit for it here symfony/assetic-bundle@ae29934

I have tried forcing ~1.3@dev and dev-master but I still get the same error. Looks like this might be better suited in the assetic repo. Let me know if you would like me to close this issue.

@fabpot
Copy link
Member
fabpot commented Jan 8, 2015

Let's keep this issue open until we find out how to fix this problem. @stof Can you have a look?

@mvar
Copy link
Contributor
mvar commented Jan 8, 2015

Interesting issue. Somehow one project runs successfully with newest Symfony and Assetic bundle versions, another fails on all Assetic blocks in template. @dev version of Assetic bundle fixes the issue.

@javiereguiluz
Copy link
Member

@trsteel88 I can confirm the same error when using the following dependencies:

"symfony/symfony": "2.6.3",
"symfony/assetic-bundle": "~2.3",

But when I change them for the following, everything works again:

"symfony/symfony": "2.6.3",
"symfony/assetic-bundle": "dev-master",

@kniziol
Copy link
kniziol commented Jan 8, 2015

@javiereguiluz same for me.

I have replaced
"symfony/assetic-bundle": "~2.3"
with
"symfony/assetic-bundle": "2.5.*@dev"
and the problem is gone.

So, why there is no any information in documentation or version of the symfony/assetic-bundle isn't higher? It's annoying.

@trsteel88
Copy link
Contributor Author

Hmmm looks like I was updating the component instead of the bundle. Will give this a go when I'm back at a computer.

@svassaux
Copy link

yes, same bug here. I chose to stay with symdony 2.6.1 cause I prefer not to play with @dev versions.

@edwines
Copy link
edwines commented Jan 13, 2015

Same issue in the LTS 2.3

Bad to know that when I do some composer update in a project with stable dependencies will generate this kind of breaks.

@Kaz-
Copy link
Kaz- commented Jan 15, 2015

I'm having this issue with LTS 2.3 too, just after a composer update, can I use "symfony/assetic-bundle": "2.5.*@dev"to fix it, or is there any known compatibility issue with SF2.3.* ?

@trsteel88
Copy link
Contributor Author

This has been resolved with the stable release of AsseticBundle v2.6.0 (https://github.com/symfony/AsseticBundle/releases/tag/v2.6.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
0