Skip to content
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

Problem with "unexpected render tag" #181

Closed
dajuam opened this issue Jul 19, 2016 · 5 comments
Closed

Problem with "unexpected render tag" #181

dajuam opened this issue Jul 19, 2016 · 5 comments

Comments

@dajuam
Copy link

dajuam commented Jul 19, 2016

Hi, I'm having this problem:

Unexpected "render" tag (expecting closing tag for the "if" tag defined near line 54) in SonataDoctrineMongoDBAdminBundle:Form:form_admin_fields.html.twig at line 54.

When I access into creation admin page (/create). I am using Symfony 3.1 and the configuration in my composer.json is:

"doctrine/mongodb-odm": "^1.0",
"doctrine/mongodb": "~1.2",
"doctrine/mongodb-odm-bundle": "^3.1",
"sonata-project/doctrine-mongodb-admin-bundle": "dev-master"

I can fix it by commenting the "render" line, but I think you must know this problem.

Thank you very much.

@greg0ire
Copy link
Contributor

Can you try replacing the render tag with the render function ? IIRC, one has been deprecated in favor of the other. If it works, can you provide a PR?

@dajuam
Copy link
Author

dajuam commented Jul 20, 2016

Yes, of course.

@jeantristan
Copy link
Contributor

I've got the same issue with:
"sonata-project/admin-bundle": "^3.4@dev",
"sonata-project/doctrine-mongodb-admin-bundle": "^3.0@dev",

What render function are you talking about?

@greg0ire
Copy link
Contributor

greg0ire commented Aug 2, 2016

What render function are you talking about?

The one @dajuam uses in #182 (he literally removes the render tag and replaces it with the render function.

@greg0ire
Copy link
Contributor

greg0ire commented Aug 2, 2016

Closed in favor of #188

@greg0ire greg0ire closed this as completed Aug 2, 2016
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

3 participants