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

Twig has no 'ep_path' function (../views/Post/_post.html.twig) #44

Closed
a-menshchikov opened this issue Nov 3, 2013 · 7 comments
Closed

Comments

@a-menshchikov
Copy link

I have exception on parsing _post.html.twig file, because it contains 'ep_path' calling at line 4.

I doing something wrong or it's not my mistake?

@dantleech
Copy link
Member

err.. those templates are actually for some CMS I was trying to create in January - they shouldn't be there at all!

The Bundle does not use them however - it uses Resources/Blog/view_post.html.twig for rendering the post.

How did you run into this error?

@dbu
Copy link
Member

dbu commented Nov 3, 2013

see also #40

@a-menshchikov
Copy link
Author

I'm trying run 'cmf-sandbox'.
Win 7, Apache 2.4, PHP 5.5, follow the instructions (deploy from Git).

@dantleech
Copy link
Member

@Z-KeyKeeper very strange that you are having this problem as the templates are not used by the BlogBundle. I have created #45 to remove them.

@a-menshchikov
Copy link
Author

Maybe problem come from composer dependencies? Some one problem which I found related with 'sonata-project/doctrine-phpcr-admin-bundle' version in composer.json; "1.0." contains '../CRUD/edit_phpcr_many_to_one.html.twig' and '../CRUD/edit_phpcr_one_to_one.html.twig' files with empty render "with" statements. This bug fixed at master, but in sandbox's composer.json used "1.0." (see sonata-project/SonataDoctrinePhpcrAdminBundle@8c5a781).

Maybe, _post.html.twig used either because of some dependencies specified wrong?

P.S. > _post.html.twig uses only by _postList.html.twig, which referred only in '/app/cache/dev/assetic/config/..'.

@dbu
Copy link
Member

dbu commented Nov 3, 2013

i merged the removal of the BlogBundle templates. better for you?

regarding sonata, yep, indeed there are a few glitches. if you require sonata admin as 1.0.*@dev you should will get the latest 1.0 things from master.
i think we should try to tag 1.0.1 somewhen next week, so that you can get those things in a stable version.

can you please close this issue if the problem is solved for you?

@a-menshchikov
Copy link
Author

Yes, it solved. Thanks!

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