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

fatal error during cache:clear when manually uninstalling an extension #972

Closed
fritzmg opened this issue Jul 18, 2017 · 3 comments
Closed

Comments

@fritzmg
Copy link
Contributor

fritzmg commented Jul 18, 2017

Tested with the contao/managed-edition 4.4.1.

Reproduction

  1. Manually install a Contao 3 extension that is compatible with Contao 4 by copying the extension folder to /system/modules.
  2. Clear the cache.
  3. Run the Install Tool.
  4. Delete the extension folder from /system/modules again to uninstall the extension.
  5. Run vendor/bin/contao-console cache:warmup or … cache:clear --no-warmup or … cache:clear. The following fatal error will occur:
PHP Fatal error:  Uncaught LogicException: The module folder "system/modules/news_sorted" does not exist. in …\vendor\contao\core-bundle\src\HttpKernel\Bundle\ContaoModuleBundle.php:36
Stack trace:
#0 …\vendor\contao\manager-plugin\src\Bundle\Config\ModuleConfig.php(53): Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle->__construct('news_sorted', 'C:\\xampp\\htdocs...')
#1 …\vendor\contao\manager-bundle\src\HttpKernel\ContaoKernel.php(232): Contao\ManagerPlugin\Bundle\Config\ModuleConfig->getBundleInstance(Object(Contao\ManagerBundle\HttpKernel\ContaoKernel))
#2 …\vendor\contao\manager-bundle\src\HttpKernel\ContaoKernel.php(53): Contao\ManagerBundle\HttpKernel\ContaoKernel->addBundlesFromPlugins(Array)
#3 …\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(450): Contao\ManagerBundle\HttpKernel\ContaoKernel->registerBundles()
#4 …\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\K in …\vendor\contao\core-bundle\src\HttpKernel\Bundle\ContaoModuleBundle.php on line 36

The only way to uninstall such an extension is by deleting the extension folder and then deleting var/cache/prod manually.

@fritzmg fritzmg changed the title fatal error during cache clear when uninstalling an extension fatal error during cache:clear when manually uninstalling an extension Jul 18, 2017
@aschempp
Copy link
Member

aschempp commented Jul 18, 2017 via email

@fritzmg
Copy link
Contributor Author

fritzmg commented Jul 18, 2017

Hm, true, in the standard-edition it would not happen, because you would have to manually remove it from the AppKernel anyway.

@ghost
Copy link

ghost commented Jul 18, 2017

The issue has been moved to contao/manager-bundle#42.

@ghost ghost closed this as completed Jul 18, 2017
This issue was closed.
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