sonata-project / SonataUserBundle

Symfony SonataUserBundle
https://docs.sonata-project.org/projects/SonataUserBundle
MIT License
342 stars 487 forks source link

Undefined index clearing the cache #330

Closed Maxwell2022 closed 10 years ago

Maxwell2022 commented 10 years ago

When I clear the cache in prod mode, I have few undefined indexes coming from the dependency injection file:

PHP Notice: Undefined index: register in [...]/vendor/sonata-project/user-bundle/Sonata/UserBundle/DependencyInjection/SonataUserExtension.php on line 270

PHP Notice: Undefined index: register in[...]/vendor/sonata-project/user-bundle/Sonata/UserBundle/DependencyInjection/SonataUserExtension.php on line 271

PHP Notice: Undefined index: dashboard in [...]/vendor/sonata-project/user-bundle/Sonata/UserBundle/DependencyInjection/SonataUserExtension.php on line 273

PHP Notice: Undefined index: menu in [...]/vendor/sonata-project/user-bundle/Sonata/UserBundle/DependencyInjection/SonataUserExtension.php on line 284

These errors are repeated twice. I'm not using this bundle but it is required by sonata-admin-bundle.

Not sure what I need to add to avoid getting those undefined indexes.

Maxwell2022 commented 10 years ago

I've checked this config file (not sure it's the one I need) and try to add default configuration in the config.yml

Now I get the following error:

[ReflectionException]
Class EnhancedProxy675ca314_eb520f340e7ce5d9b295270d9f6505a3fb19a762CG\Acme\UserBundle\Controller\ProfileController does not exist

rande commented 10 years ago

We cannot reproduce the issue, and this bundle is not required by the AdminBundle