Bonjour,
Comme dit dans le titre je rencontre cette erreur lorsque j'essaye de vider le cache ou encore avec la commande
Cette erreur est survenue alors que j'installais le bundle FOSUserBundle, depuis je n'ai plus accès à rien, voici le message d'erreur lorsque j'essaye d'accéder à l'un de mes formulaire via le navigateur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 php app/console install --reinstall
Je n'ai rien trouvé comme info sur le web, voici mon fichier deps sans le bundle user:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Whoops, looks like something went wrong. 1/1LogicException: Container extension "jms_serializer" is not registered in C:\dev\env\wamp\www\lucullus\vendor\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php line 73 at ContainerBuilder->getExtension() in C:\dev\env\wamp\www\lucullus\vendor\bundles\JMS\SerializerBundle\JMSSerializerBundle.php line 39 at JMSSerializerBundle->build() in C:\dev\env\wamp\www\lucullus\app\bootstrap.php.cache line 852 at Kernel->buildContainer() in C:\dev\env\wamp\www\lucullus\app\bootstrap.php.cache line 783 at Kernel->initializeContainer() in C:\dev\env\wamp\www\lucullus\app\bootstrap.php.cache line 517 at Kernel->boot() in C:\dev\env\wamp\www\lucullus\app\bootstrap.php.cache line 548 at Kernel->handle() in C:\dev\env\wamp\www\lucullus\web\app_dev.php line 27
Mon fichier deps.lock :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76 [symfony] git=http://github.com/symfony/symfony.git version=v2.0.17 [twig] git=http://github.com/fabpot/Twig.git version=v1.9.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.7 [doctrine] git=http://github.com/doctrine/doctrine2.git version=2.1.7 [swiftmailer] git=http://github.com/swiftmailer/swiftmailer.git version=v4.2.1 [assetic] git=http://github.com/kriswallsmith/assetic.git version=v1.0.3 [twig-extensions] git=http://github.com/fabpot/Twig-extensions.git [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=origin/2.0 [JMSSerializerBundle] git=http://github.com/schmittjoh/JMSSerializerBundle.git target=bundles/JMS/SerializerBundle [FOSRest] git=http://github.com/FriendsOfSymfony/FOSRest.git target=fos/FOS/Rest [FOSRestBundle] git=http://github.com/FriendsOfSymfony/FOSRestBundle.git target=bundles/FOS/RestBundle [metadata] git=http://github.com/schmittjoh/metadata.git version=1.1.0
Le fichier AppKernel.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 symfony v2.0.17 twig v1.9.2 monolog 1.0.2 doctrine-common 2.1.4 doctrine-dbal 2.1.7 doctrine 2.1.7 swiftmailer v4.2.1 assetic v1.0.3 twig-extensions feb6d3f10c411e2631997c0a905aa581c80305c1 metadata 1.1.0 SensioFrameworkExtraBundle v2.0.17 JMSSecurityExtraBundle e752f888c51425f71382c056961f10f2be642102 SensioDistributionBundle v2.0.17 SensioGeneratorBundle v2.0.17 AsseticBundle 6f15728c1aefa5246caa83730e3dbf70b0d46052
Et le fichier autoload.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 <?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { 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 Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), new lucullus\ParentBundle\lucullusParentBundle(), new FOS\RestBundle\FOSRestBundle(), new JMS\SerializerBundle\JMSSerializerBundle($this), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Acme\DemoBundle\AcmeDemoBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } return $bundles; } public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); } }
J'ai l'impression que le problème provient de bootstrap, il y a un fichier bootstrap.php.cache dans le dossier app.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 <?php use Symfony\Component\ClassLoader\UniversalClassLoader; use Doctrine\Common\Annotations\AnnotationRegistry; $loader = new UniversalClassLoader(); $loader->registerNamespaces(array( 'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'), 'Sensio' => __DIR__.'/../vendor/bundles', 'JMS' => __DIR__.'/../vendor/bundles', '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', 'FOS\\Rest' => __DIR__.'/../vendor/fos', 'FOS' => __DIR__.'/../vendor/bundles', )); $loader->registerPrefixes(array( 'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib', 'Twig_' => __DIR__.'/../vendor/twig/lib', )); // intl if (!function_exists('intl_get_error_code')) { require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php'; $loader->registerPrefixFallbacks(array(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs')); } $loader->registerNamespaceFallbacks(array( __DIR__.'/../src', )); $loader->register(); AnnotationRegistry::registerLoader(function($class) use ($loader) { $loader->loadClass($class); return class_exists($class, false); }); AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php'); require __DIR__.'/../vendor/swiftmailer/lib/swift_required.php';
J’espère que vous pourrez m'aider et si mon erreur est évidente merci de me signaler que je suis débile ^^
Merci par avance.
Partager