Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache clear, cannot declare class #303

Open
KDederichs opened this issue Jan 4, 2018 · 2 comments
Open

Cache clear, cannot declare class #303

KDederichs opened this issue Jan 4, 2018 · 2 comments

Comments

@KDederichs
Copy link

Hey,
I've been seeing a strange issue where the clear cache command cannot declare classes on it's first execution if there is no previous cache.

On the first execution it will always fail with something like
PHP Fatal error: Cannot declare class EnhancedProxy_84f26540d03882f66a8da2bedf47ccf4f27752f4\__CG__\TaskBundle\Controller\SupervisionController, because the name is already in use in /home/kai/public_html/washeroo/var/cache/tes_/jms_diextra/lookup_method_classes/TaskBundle-Controller-SupervisionController.php on line 11 14:33:41 CRITICAL [php] Fatal Compile Error: Cannot declare class EnhancedProxy_84f26540d03882f66a8da2bedf47ccf4f27752f4\__CG__\TaskBundle\Controller\SupervisionController, because the name is already in use ["exception" => Symfony\Component\Debug\Exception\FatalErrorException { …}] []
On any subsequent run of the clean cache command it will be successful though.

I already posted it to symfony thinking it might be cache clear related but they said it"s not their bug.

As reference here is the issue:
symfony/symfony#25576

Here is also something to reproduce said behavior:

https://github.com/KDederichs/symfony-standard/tree/issue_25576

@greg0ire
Copy link
Contributor

greg0ire commented Jan 4, 2018

Is this a duplicate of #96 ?

@KDederichs
Copy link
Author

I don't think so as the error shown in #96 is a different one and this is not ACL related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants