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

[2.0.4] Clear cache error #3876

Closed
Kaik opened this Issue Dec 28, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@Kaik
Copy link
Contributor

Kaik commented Dec 28, 2017

Q A
Zikula Version 2.0.4
PHP Version 7.x

Expected behavior

No error during cache clear.

Actual behavior

Below error occuring during cache clear

php bin/console cache:clear

 // Clearing the cache for the dev environment with debug true                                                          


 // Warming up cache...                                                                                                 


In FileLoader.php line 168:
                                                                                                                                                            
  [Symfony\Component\Config\Exception\FileLoaderLoadException]                                                                                              
  The translator property is not set correctly in Zikula\Bundle\CoreBundle\Bundle\MetaData in . (which is being imported from "/home/Kaik/public_html/upgr  
  ade20/src/app/config/routing.yml"). Make sure there is a loader supporting the "zikularoutesmodule" type.                                                 
                                                                                                                                                            

Exception trace:
 Symfony\Component\Config\Loader\FileLoader->doImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:90
 Symfony\Component\Config\Loader\FileLoader->import() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:161
 Symfony\Component\Routing\Loader\YamlFileLoader->parseImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:91
 Symfony\Component\Routing\Loader\YamlFileLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:153
 Symfony\Component\Config\Loader\FileLoader->doImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:90
 Symfony\Component\Config\Loader\FileLoader->import() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:161
 Symfony\Component\Routing\Loader\YamlFileLoader->parseImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:91
 Symfony\Component\Routing\Loader\YamlFileLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php:40
 Symfony\Component\Config\Loader\DelegatingLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php:70
 Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php:56
 Symfony\Bundle\FrameworkBundle\Routing\Router->getRouteCollection() at /home/Kaik/public_html/upgrade20/src/vendor/jms/i18n-routing-bundle/JMS/I18nRoutingBundle/Router/I18nRouter.php:157
 JMS\I18nRoutingBundle\Router\I18nRouter->getRouteCollection() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:367
 Symfony\Component\Routing\Router->getMatcherDumperInstance() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:289
 Symfony\Component\Routing\Router->Symfony\Component\Routing\{closure}() at n/a:n/a
 call_user_func() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
 Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:302
 Symfony\Component\Routing\Router->getMatcher() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php:73
 Symfony\Bundle\FrameworkBundle\Routing\Router->warmUp() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php:55
 Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer->warmUp() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
 Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:207
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:166
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmupCache() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:121
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:954
 Symfony\Component\Console\Application->doRunCommand() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:240
 Symfony\Component\Console\Application->doRun() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:71
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
 Symfony\Component\Console\Application->run() at /home/Kaik/public_html/upgrade20/src/bin/console:43

In MetaData.php line 267:
                                                                                            
  [Symfony\Component\HttpKernel\Exception\PreconditionRequiredHttpException]                
  The translator property is not set correctly in Zikula\Bundle\CoreBundle\Bundle\MetaData  
                                                                                            

Exception trace:
 Zikula\Bundle\CoreBundle\Bundle\MetaData->confirmTranslator() at /home/Kaik/public_html/upgrade20/src/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php:181
 Zikula\Bundle\CoreBundle\Bundle\MetaData->getUrl() at /home/Kaik/public_html/upgrade20/src/system/RoutesModule/Routing/RouteLoader.php:327
 Zikula\RoutesModule\Routing\RouteLoader->prependBundlePrefix() at /home/Kaik/public_html/upgrade20/src/system/RoutesModule/Routing/RouteLoader.php:200
 Zikula\RoutesModule\Routing\RouteLoader->find() at /home/Kaik/public_html/upgrade20/src/system/RoutesModule/Routing/RouteLoader.php:154
 Zikula\RoutesModule\Routing\RouteLoader->findAll() at /home/Kaik/public_html/upgrade20/src/system/RoutesModule/Routing/RouteLoader.php:113
 Zikula\RoutesModule\Routing\RouteLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:153
 Symfony\Component\Config\Loader\FileLoader->doImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:90
 Symfony\Component\Config\Loader\FileLoader->import() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:161
 Symfony\Component\Routing\Loader\YamlFileLoader->parseImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:91
 Symfony\Component\Routing\Loader\YamlFileLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:153
 Symfony\Component\Config\Loader\FileLoader->doImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/FileLoader.php:90
 Symfony\Component\Config\Loader\FileLoader->import() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:161
 Symfony\Component\Routing\Loader\YamlFileLoader->parseImport() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php:91
 Symfony\Component\Routing\Loader\YamlFileLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php:40
 Symfony\Component\Config\Loader\DelegatingLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php:70
 Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader->load() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php:56
 Symfony\Bundle\FrameworkBundle\Routing\Router->getRouteCollection() at /home/Kaik/public_html/upgrade20/src/vendor/jms/i18n-routing-bundle/JMS/I18nRoutingBundle/Router/I18nRouter.php:157
 JMS\I18nRoutingBundle\Router\I18nRouter->getRouteCollection() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:367
 Symfony\Component\Routing\Router->getMatcherDumperInstance() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:289
 Symfony\Component\Routing\Router->Symfony\Component\Routing\{closure}() at n/a:n/a
 call_user_func() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php:43
 Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:302
 Symfony\Component\Routing\Router->getMatcher() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php:73
 Symfony\Bundle\FrameworkBundle\Routing\Router->warmUp() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php:55
 Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer->warmUp() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:52
 Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:207
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:166
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmupCache() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:121
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:954
 Symfony\Component\Console\Application->doRunCommand() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:240
 Symfony\Component\Console\Application->doRun() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:71
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/Kaik/public_html/upgrade20/src/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148
 Symfony\Component\Console\Application->run() at /home/Kaik/public_html/upgrade20/src/bin/console:43

cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

Steps to reproduce

Install Zikula core 2.0.4 clear cache in CLI

@craigh craigh self-assigned this Dec 29, 2017

@craigh craigh added the Bug label Dec 29, 2017

@craigh craigh added this to the 1.5.5 milestone Dec 29, 2017

@craigh craigh referenced this issue Dec 29, 2017

Merged

fixes #3876 #3880

craigh added a commit that referenced this issue Dec 29, 2017

@craigh craigh closed this in 064b665 Dec 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment