cedriclombardot/AdmingeneratorGeneratorBundle — Issue #44: Error while trying to run > php app/console admin:setup
Author: paquitodev
Created: 2011-11-17 19:06:26+00:00
State: open

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;
}