problems with admingeneratorGeneratorBundle!!

Discuss Symfony 2 bundles here

Moderators: dcobalt, tiagojsag

problems with admingeneratorGeneratorBundle!!

Postby walter_riv_18 » Sat Dec 17, 2011 5:08 pm

hi, my problems is ...

i want to install y use admingeneratorGeneratorBundle, i have this website:

http://symfony2admingenerator.org/

1.- in this page show a file:

---------------------------------------------------------------
generator: admingenerator.generator.doctrine
params:
model: Admingenerator\DemoBundle\Entity\Movie
namespace_prefix: Admingenerator
bundle_name: DemoBundle
fields:
is_published:
help: If you

.
.
.
.
.


-----------------------


2.- in the install :(http://symfony2admingenerator.org/installation.html)
.....................................................
step 1
step 2
.

..
.

**********************************************************************
********************************************************************

problem 1:

I first want to install but i get a problem when i use command: php app/console assets:install web/

the error message:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "expressions" under "jms_security_extra"


note. i install all bundles : pagerfanta,kpmenu,sesionbundle, etc etc. i have the problerm when i am step ( php app/console assets:install web/)

**********************************************************************
********************************************************************
problem 2:
how i build my interface , i remember what symfiony 1 i use comands , but en symfony 2 there is not command to generate admin interface


**********************************************************************
********************************************************************
problem 3:

where i put the code:
_______________________________________
generator: admingenerator.generator.doctrine
params:
model: Admingenerator\DemoBundle\Entity\Movie
namespace_prefix: Admingenerator
bundle_name: DemoBundle
fields:
is_published:
help: If you

.
.
.
.
.


____________________

in config.yml?


thanks!!!!
walter_riv_18
Junior Member
 
Posts: 6
Joined: Sat Dec 03, 2011 6:05 am

Re: problems with admingeneratorGeneratorBundle!!

Postby shaamkayani » Sat Dec 17, 2011 9:24 pm

i too had same problem with admin generator a week back and luckily i found the solution after searching in google for 3 days. here are few steps

as for problem 1. open your deps file in a text editor and add these lines

[JMSSecurityExtraBundle]
git=https://github.com/schmittjoh/JMSSecurityExtraBundle.git
target=/bundles/JMS/SecurityExtraBundle

[JMSAopBundle]
git=https://github.com/schmittjoh/JMSAopBundle.git
target=/bundles/JMS/AopBundle

[JMSDiExtraBundle]
git=https://github.com/schmittjoh/JMSDiExtraBundle.git
target=/bundles/JMS/DiExtraBundle

[metadata]
git=http://github.com/schmittjoh/metadata.git
version=1.1.0

change metadata dependency's version,make sure metadata is version 1.1.0 in original symfony deps it is version 1.0.0 others are JMS security dependencies for the expressions and others to work properly

then run the command php bin/vendors install --reinstall(this is necessary for the update)
and add it in autoload.php and appkernel.php and config.yml as described in those bundles doc and admingenerator bundles then run the command php app.console assets:install web/ and those settings will work

for problem 2 and 3 follow the link http://symfony2admingenerator.org/documentation.html and you will know everything. this is a separate site for the doc and usage of admingenerator bundle.

hope it will work well for you :)
shaamkayani
Junior Member
 
Posts: 21
Joined: Sat Oct 10, 2009 9:55 pm
Location: Pakistan

Re: problems with admingeneratorGeneratorBundle!!

Postby reggossi » Thu Mar 29, 2012 10:07 am

Hi,

I had the very same problem (Unrecognized options "expressions" under "jms_security_extra") so I followed the above advice but it still doesn't work.
Now I get :

PHP Fatal error: Call to undefined method JMS\SecurityExtraBundle\DependencyInjection\JMSSecurityExtraExtension::getConfiguration() in /Users/.../Symfony/vendor/bundles/JMS/SecurityExtraBundle/DependencyInjection/JMSSecurityExtraExtension.php on line 45

Fatal error: Call to undefined method JMS\SecurityExtraBundle\DependencyInjection\JMSSecurityExtraExtension::getConfiguration() in /Users/.../Symfony/vendor/bundles/JMS/SecurityExtraBundle/DependencyInjection/JMSSecurityExtraExtension.php on line 45

I've tried to solve my problem for 3 days, I searched many times on google, but I still can't figure it out. And I really need to make it work quickly !
(Additional info : I use Symfony 2.0.12 without vendors, I've chosen use_doctrine_orm: true, I've tried to clear the cache, I also tried to install cg-library, I've tried version=origin/master and version=origin/1.0.x for JMSSecurityExtraBundle )

Thank you for your help.
reggossi
Junior Member
 
Posts: 15
Joined: Thu Mar 22, 2012 9:20 pm

Re: problems with admingeneratorGeneratorBundle!!

Postby Mikle » Wed Apr 04, 2012 4:59 am

I had the same problem:

Fatal error: Call to undefined method JMS\SecurityExtraBundle\DependencyInjection\JMSSecurityExtraExtension::getConfiguration() in /Users/.../Symfony/vendor/bundles/JMS/SecurityExtraBundle/DependencyInjection/JMSSecurityExtraExtension.php on line 45

I looked into the GIT and found this changes:
https://github.com/schmittjoh/JMSSecurityExtraBundle/commit/4db84e6060bafb482419a23a22f43143b9dc80f5
Here the undefined method appeared.


So I just rolled back the line...
Code: Select all
$config = $this->processConfiguration($this->getConfiguration($configs, $container), $configs);
...in my local file JMSSecurityExtraExtension.php to the previous version...
Code: Select all
$config = $this->processConfiguration(new Configuration(), $configs);


And it seems fixed the problem.
Mikle
Junior Member
 
Posts: 1
Joined: Wed Apr 04, 2012 4:39 am

Re: problems with admingeneratorGeneratorBundle!!

Postby mmucklo » Mon Apr 23, 2012 10:53 am

Got all this to work when updating from 2.0.1 to 2.0.12 by specifying the following in deps, autoload.php and AppKernel.php:

deps:
Code: Select all
[symfony]
    git=http://github.com/symfony/symfony.git
    version=v2.0.12

[twig]
    git=http://github.com/fabpot/Twig.git
    version=v1.6.2

[monolog]
    git=http://github.com/Seldaek/monolog.git
    version=1.0.2

[doctrine-common]
    git=http://github.com/doctrine/common.git
    version=2.1.4

[doctrine-dbal]
    git=http://github.com/doctrine/dbal.git
    version=2.1.6

[doctrine]
    git=http://github.com/doctrine/doctrine2.git
    version=2.1.6

[swiftmailer]
    git=http://github.com/swiftmailer/swiftmailer.git
    version=v4.1.5

[assetic]
    git=http://github.com/kriswallsmith/assetic.git
    version=v1.0.3

[twig-extensions]
    git=http://github.com/fabpot/Twig-extensions.git

[metadata]
    git=http://github.com/schmittjoh/metadata.git
    version=1.1.0

[SensioFrameworkExtraBundle]
    git=http://github.com/sensio/SensioFrameworkExtraBundle.git
    target=/bundles/Sensio/Bundle/FrameworkExtraBundle

[JMSDiExtraBundle]
    git=https://github.com/schmittjoh/JMSDiExtraBundle.git
    target=/bundles/JMS/DiExtraBundle
    version=1.0.0

[JMSAopBundle]
    git=http://github.com/schmittjoh/JMSAopBundle.git
    target=/bundles/JMS/AopBundle

[CGLibrary]
    git=http://github.com/schmittjoh/cg-library.git
    target=cg-library

[JMSSecurityExtraBundle]
    git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
    target=/bundles/JMS/SecurityExtraBundle
    version=origin/1.0.x

[SensioFrameworkExtraBundle]
    git=http://github.com/sensio/SensioFrameworkExtraBundle.git
    target=/bundles/Sensio/Bundle/FrameworkExtraBundle
    version=origin/2.0

[JMSSecurityExtraBundle]
    git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
    target=/bundles/JMS/SecurityExtraBundle
    version=origin/1.0.x

[SensioDistributionBundle]
    git=http://github.com/sensio/SensioDistributionBundle.git
    target=/bundles/Sensio/Bundle/DistributionBundle
    version=origin/2.0

[SensioGeneratorBundle]
    git=http://github.com/sensio/SensioGeneratorBundle.git
    target=/bundles/Sensio/Bundle/GeneratorBundle
    version=origin/2.0

[AsseticBundle]
    git=http://github.com/symfony/AsseticBundle.git
    target=/bundles/Symfony/Bundle/AsseticBundle
    version=v1.0.1

..... etc.


autoload.php changes:
Code: Select all
    'JMS'              => __DIR__.'/../vendor/bundles',
    'CG'               => __DIR__.'/../vendor/cg-library/src',


AppKernel.php changes:
Code: Select all
            new JMS\DiExtraBundle\JMSDiExtraBundle($this),
            new JMS\AopBundle\JMSAopBundle(),
            new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
mmucklo
Junior Member
 
Posts: 2
Joined: Fri Jul 22, 2011 8:02 am


Return to Bundles discussion

Who is online

Users browsing this forum: No registered users and 0 guests