You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from Symfony 3.0.6 to 3.3.0 something with the cache seems to be broken in production mode. There are some other tickets basically mentioning the same issue, but the solution was always to remove the offending class from src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
and some more, just search for redeclare in the issues.
My problem specifically concerns the ContainerAwareInterface, the error message is:
PHP message: PHP Fatal error: Cannot redeclare class Symfony\Component\DependencyInjection\ContainerAwareInterface in var/cache/dhs/prod/classes.php on line 3364
At first i tried the usual, cache clearing (via rm and app/console), vendor reinstalls (even removing the complete vendor directory).
I just removed the class from the list in FrameworkExtension.php, cleared the cache and everything works fine so far. Is there a bigger problem with this new caching mechanism or is it my environment?
The text was updated successfully, but these errors were encountered:
OpCode Cache clearing didn't solve it unfortunately, removing the line of course does. For now, this is okay, since we're in the process of finally moving to php7, so this may not be an issue then.
After upgrading from Symfony 3.0.6 to 3.3.0 something with the cache seems to be broken in production mode. There are some other tickets basically mentioning the same issue, but the solution was always to remove the offending class from src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Similar issues/pull requests:
#22657
#20753
#21520
and some more, just search for redeclare in the issues.
My problem specifically concerns the ContainerAwareInterface, the error message is:
PHP message: PHP Fatal error: Cannot redeclare class Symfony\Component\DependencyInjection\ContainerAwareInterface in var/cache/dhs/prod/classes.php on line 3364
At first i tried the usual, cache clearing (via rm and app/console), vendor reinstalls (even removing the complete vendor directory).
I just removed the class from the list in FrameworkExtension.php, cleared the cache and everything works fine so far. Is there a bigger problem with this new caching mechanism or is it my environment?
The text was updated successfully, but these errors were encountered: