symfony2admingenerator / AdmingeneratorGeneratorBundle

(old-legacy) Admingenerator for Symfony2, parse generator.yml files to build classes
http://symfony2admingenerator.org/
MIT License
360 stars 125 forks source link

Error while trying to run > php app/console admin:setup #44

Closed reypm closed 12 years ago

reypm commented 12 years ago

Coming from this Issue reported by mistake here https://github.com/cedriclombardot/AdmingeneratorActiveAdminThemeBundle/issues/11#issuecomment-2778853:

Maybe this is not a issue but didn't know where to ask this. I follow every step at docs for install the Bundle but get this error:

Fatal error: Interface 'Pagerfanta\View\ViewInterface' not found in D:\Webserver\htdocs\hospedaje\vendor\bundles\Admingenerator\GeneratorBundle\Pagerfanta\View\AdmingenratorView.php on line 10

when trying to run the command >php app/console admin:setup, any help on this? What I'm doing wrong?

PS: Any list or forum or groups to post this problems? Cheers and thx

And in reply to @cedriclombardot I have all fine as defined in my autoload.php (only relevant parts):

$loader->registerNamespaces(array( 'Symfony' => array(DIR . '/../vendor/symfony/src', DIR . '/../vendor/bundles'), 'Sensio' => DIR . '/../vendor/bundles', 'JMS' => DIR . '/../vendor/bundles', 'Doctrine\Common\DataFixtures' => DIR . '/../vendor/doctrine-fixtures/lib', 'Doctrine\Common' => DIR . '/../vendor/doctrine-common/lib', 'Doctrine\DBAL' => DIR . '/../vendor/doctrine-dbal/lib', 'Doctrine' => DIR . '/../vendor/doctrine/lib', 'Monolog' => DIR . '/../vendor/monolog/src', 'Assetic' => DIR . '/../vendor/assetic/src', 'Metadata' => DIR . '/../vendor/metadata/src', 'Knp\Bundle' => DIR . '/../vendor/bundles', 'Knp\Menu' => DIR . '/../vendor/knpmenu/src', 'FOS' => DIR . '/../vendor/bundles', 'Sonata' => DIR . '/../vendor/bundles', 'CG' => DIR . '/../vendor/cg/src', // Solo para AcmePizzaBundle 'Acme' => DIR . '/../vendor/bundles', // AdminGenerator 'Admingenerator' => array(DIR.'/../src', DIR.'/../vendor/bundles'), 'WhiteOctober\PagerfantaBundle' => DIR.'/../vendor/bundles', 'Pagerfanta' => DIR.'/../vendor/pagerfanta/src', ));

And AppKernel.php public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Symfony\Bundle\DoctrineBundle\DoctrineBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), new JMS\AopBundle\JMSAopBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), new FOS\UserBundle\FOSUserBundle(), new Sonata\jQueryBundle\SonatajQueryBundle(), new Sonata\BluePrintBundle\SonataBluePrintBundle(), new Sonata\AdminBundle\SonataAdminBundle(), new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(), // Admin Generator new Admingenerator\GeneratorBundle\AdmingeneratorGeneratorBundle(), new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), // Theme for AdminGenerator new Admingenerator\ActiveAdminThemeBundle\AdmingeneratorActiveAdminThemeBundle(), new Albet\HospedajeBundle\AlbetHospedajeBundle(), );

    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
        $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
    }

    return $bundles;
}
cedriclombardot commented 12 years ago

First of all, there is no problem to make issues for support, for the moment, there is no other support way except by mail.

To hekp you i have some questions.

If you follow well the setup you've see that have a lot of bisect possible, so :

Are you on a symfony-standard, on the admingeneratorIpsum project or on a symfony install with hand ??

symfony-standard or symfony basic => following the readme, but using git much work, but like you tell me you load only the zip. So i don't know if you've git to setup others deps using the php app/console admin:setup

symfony basic => Warning the setup will work only with the git mode not the deps mode, you'll have fatals

admingeneratorIpsum => just run ./bin/vendors install like writen on the admingeneratorIpsum readme

reypm commented 12 years ago

Thanks and regarding your questions: 1) I'm on a Symfony Standard installed by hand, meaning download sources from www.symfony.com and unzip in my root directory. 2) I haven't git because I'm on Windows and didn't know if GIT works there and also behing a proxy server

Is this enough or you need more info?

cedriclombardot commented 12 years ago

OK so i confirm git work under windows, but be loaded in your path. For proxy i don't know how it's works.

But the problem for you is to load all deps but if you want to use a zip mode, you'll have to download by hand.

So each time you see something like :

git submodule add http://github.com/whiteoctober/Pagerfanta.git vendor/pagerfanta

means that you have to load zip at https://github.com/whiteoctober/Pagerfanta into vendor/pagerfanta

because there is not zip mode in the admin:setup or other setups :( if someone want to do it's open :D

reypm commented 12 years ago

This is exactly what I do, if you take a look at the code for autoload.php and AppKernel.php and see the image posted at http://www.dropmocks.com/miqIZ I have all the Bundles needed for AdminGenerator to run so I can't see where it fails

cedriclombardot commented 12 years ago

Ok and you vendor folder have you got pagerfanta ??

My own look like :

drwx------ 1 cedric cedric 4096 2011-10-23 19:10 assetic/ drwx------ 1 cedric cedric 4096 2011-09-13 21:01 Behat/ drwx------ 1 cedric cedric 4096 2011-10-24 23:12 bundles/ drwx------ 1 cedric cedric 4096 2011-11-09 23:12 cg-library/ drwx------ 1 cedric cedric 4096 2011-11-02 22:29 doctrine/ drwx------ 1 cedric cedric 4096 2011-11-02 22:29 doctrine-common/ drwx------ 1 cedric cedric 4096 2011-11-09 23:12 doctrine-dbal/ drwx------ 1 cedric cedric 4096 2011-10-23 19:10 doctrine-fixtures/ drwx------ 1 cedric cedric 4096 2011-11-02 22:29 doctrine-mongodb/ drwx------ 1 cedric cedric 4096 2011-11-02 22:29 doctrine-mongodb-odm/ drwx------ 1 cedric cedric 4096 2011-11-09 23:12 KnpMenu/ drwx------ 1 cedric cedric 4096 2011-11-09 23:12 metadata/ drwx------ 1 cedric cedric 4096 2011-10-28 19:52 monolog/ drwx------ 1 cedric cedric 4096 2011-11-11 12:12 pagerfanta/ drwx------ 1 cedric cedric 4096 2011-10-23 19:10 phing/ drwx------ 1 cedric cedric 4096 2011-11-02 22:29 propel/ drwx------ 1 cedric cedric 4096 2011-10-23 19:10 swiftmailer/ drwx------ 1 cedric cedric 4096 2011-11-09 23:12 symfony/ drwx------ 1 cedric cedric 4096 2011-10-23 19:09 twig/ drwx------ 1 cedric cedric 4096 2011-11-09 23:12 twig-extensions/ drwx------ 1 cedric cedric 4096 2011-11-13 18:31 twig-generator/

Cedric

2011/11/17 ReynierPM < reply@reply.github.com

This is exactly what I do, if you take a look at the code for autoload.php and AppKernel.php and see the image posted at http://www.dropmocks.com/miqIZ I have all the Bundles needed for AdminGenerator to run so I can't see where it fails


Reply to this email directly or view it on GitHub:

https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/issues/44#issuecomment-2780810

reypm commented 12 years ago

I have not pagerfanta/, I have instead WhiteOctober/Pagerfanta as said here in docs:

git submodule add http://github.com/whiteoctober/Pagerfanta.git vendor/pagerfanta git submodule add http://github.com/whiteoctober/WhiteOctoberPagerfantaBundle.git vendor/bundles/WhiteOctober/PagerfantaBundle

which make me think that Pagerfanta must be under vendor/bundles/WhiteOctober/PagerfantaBundle and not in vendor/bundles/PagerfantaBundle. Anyway if I put Pagerfanta at bundles directory meaning /vendor/bundles/Pagerfanta then I get this other error:

Fatal error: Class 'WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle' not found in D:\Webserver\htdocs\hospedaje\app\AppKernel.php on line 29

cedriclombardot commented 12 years ago

Yes and it's writen that :

git submodule add http://github.com/whiteoctober/Pagerfanta.gitvendor/pagerfanta

So http://github.com/whiteoctober/Pagerfanta.git => go to vendor/pagerfanta and

http://github.com/whiteoctober/WhiteOctoberPagerfantaBundle.git to vendor/bundles/WhiteOctober/PagerfantaBundle

Like it's also writen in the pagerfantabundle setup

Cdric

2011/11/17 ReynierPM < reply@reply.github.com

I have not pagerfanta/, I have instead WhiteOctober/Pagerfanta as said here in docs:

git submodule add http://github.com/whiteoctober/Pagerfanta.gitvendor/pagerfanta git submodule add http://github.com/whiteoctober/WhiteOctoberPagerfantaBundle.gitvendor/bundles/WhiteOctober/PagerfantaBundle

which make me think that Pagerfanta must be under vendor/bundles/WhiteOctober/PagerfantaBundle and not in vendor/bundles/PagerfantaBundle. Anyway if I put Pagerfanta at bundles directory meaning /vendor/bundles/Pagerfanta then I get this other error:

Fatal error: Class 'WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle' not found in D:\Webserver\htdocs\hospedaje\app\AppKernel.php on line 29


Reply to this email directly or view it on GitHub:

https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/issues/44#issuecomment-2781026

reypm commented 12 years ago

Ok, I've downloaded the Pagerfanta from here https://github.com/whiteoctober/Pagerfanta and place in /vendor/bundles/Pagerfanta directory and now I have: /vendor /bundles /Pagerfanta /src /Pagerfanta .....

But still give me the error "Fatal error: Interface 'Pagerfanta\View\ViewInterface' not found in D:\Webserver\htdocs\hospedaje\vendor\bundles\Admingenerator\GeneratorBundle\Pagerfanta\View\AdmingenratorView.php on line 10"

cedriclombardot commented 12 years ago

I'have said :

http://github.com/whiteoctober/Pagerfanta.git GO TO vendor/pagerfanta

AND

http://github.com/whiteoctober/WhiteOctoberPagerfantaBundle.git TO vendor/bundles/WhiteOctober/PagerfantaBundle

you do the reverse

reypm commented 12 years ago

Yes, yes :-( I see my mistake, my bad

cedriclombardot commented 12 years ago

If it's ok for this point please close this issue please

reypm commented 12 years ago

Good support by creator and nice plugin too