sonata-project / sandbox

[Abandoned] Sonata Project's sandbox
https://sonata-project.org
MIT License
268 stars 198 forks source link

Error editing #83

Closed craigwillis85 closed 10 years ago

craigwillis85 commented 11 years ago

Hi

I've followed the installation and when I try to edit anything, I get the following:

Variable "btn_add" does not exist in SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_to_one.html.twig at line 46

wizart commented 11 years ago

Hi I get the same problem, but with another template.

Variable "btn_add" does not exist in SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_to_many.html.twig at line 19

This problems in all "relation" templates.

How to make it work?

wizart commented 11 years ago

To fix this bug, just update AdminBundle to "sonata-project/admin-bundle": "2.2.*@dev" in composer.json.

mgomez-dgt commented 11 years ago

It does not work, please could indicate me how step by step how to do it?. Sorry for my bad english.

Variable "btn_add" does not exist in SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_to_many.html.twig at line 15 500 Internal Server Error - Twig_Error_Runtime

Chrysweel commented 11 years ago

I try include in my PostAdmin a form to upload a Media, of SonataMediaBundle. with:

->add('image', 'sonata_type_admin');

And I get this error... is relationed ?

How can I embed another for Media in the form of adminBundle ?

I use SonataMediaBundle and SonataMediaBundle.

Thanks in advance

Chrysweel commented 11 years ago

In the documentation there are an example http://sonata-project.org/bundles/admin/master/doc/_images/preview_mode_button.png

But I do not found how do it !

devpetrov commented 11 years ago

Variable "btn_add" does not exist in SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_to_many.html.twig at line 15

I got this error when I installed sonata only by requiring "sonata-project/doctrine-orm-admin-bundle": "dev-master", because it automatically installs dependencies.

I just added "sonata-project/admin-bundle": "dev-master" than run the composer update command and that resolved the issue for me.

Bladrak commented 10 years ago

Should be fixed by now.