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

It is not possible to run tests when Piwik is not installed and error message is not clear #7254

Closed
tsteur opened this issue Feb 19, 2015 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@tsteur
Copy link
Member

tsteur commented Feb 19, 2015

To reproduce rename your config.ini.php and run eg ./console tests:run. This is a regression as we used to get an error message instead. I think the StaticContainer is trying to read/access the plugins config but doesn't check whether Piwik is installed.

Getting the following stack trace:

PHP Catchable fatal error:  Argument 1 passed to Piwik\Plugin\Manager::makePluginsToLoad() must be of the type array, null given, called in /home/vagrant/www/piwik/core/Plugin/Manager.php on line 784 and defined in /home/vagrant/www/piwik/core/Plugin/Manager.php on line 1273
PHP Stack trace:
PHP   1. {main}() /home/vagrant/www/piwik/console:0
PHP   2. Symfony\Component\Console\Application->run() /home/vagrant/www/piwik/console:27
PHP   3. Piwik\Console->doRun() /home/vagrant/www/piwik/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP   4. Piwik\Console->initConfig() /home/vagrant/www/piwik/core/Console.php:41
PHP   5. Piwik\Config->checkLocalConfigFound() /home/vagrant/www/piwik/core/Console.php:140
PHP   6. Piwik\Piwik::translate() /home/vagrant/www/piwik/core/Config.php:374
PHP   7. Piwik\Container\StaticContainer::get() /home/vagrant/www/piwik/core/Piwik.php:745
PHP   8. Piwik\Container\StaticContainer::getContainer() /home/vagrant/www/piwik/core/Container/StaticContainer.php:89
PHP   9. Piwik\Container\StaticContainer::createContainer() /home/vagrant/www/piwik/core/Container/StaticContainer.php:40
PHP  10. Piwik\Container\ContainerFactory->create() /home/vagrant/www/piwik/core/Container/StaticContainer.php:67
PHP  11. Piwik\Container\ContainerFactory->addPluginConfigs() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:57
PHP  12. Piwik\Plugin\Manager->getActivatedPluginsFromConfig() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:88
PHP  13. Piwik\Config->__get() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:782
PHP  14. Piwik\Config->init() /home/vagrant/www/piwik/core/Config.php:430
PHP  15. Piwik\Config->checkLocalConfigFound() /home/vagrant/www/piwik/core/Config.php:349
PHP  16. Piwik\Piwik::translate() /home/vagrant/www/piwik/core/Config.php:374
PHP  17. Piwik\Container\StaticContainer::get() /home/vagrant/www/piwik/core/Piwik.php:745
PHP  18. Piwik\Container\StaticContainer::getContainer() /home/vagrant/www/piwik/core/Container/StaticContainer.php:89
PHP  19. Piwik\Container\StaticContainer::createContainer() /home/vagrant/www/piwik/core/Container/StaticContainer.php:40
PHP  20. Piwik\Container\ContainerFactory->create() /home/vagrant/www/piwik/core/Container/StaticContainer.php:67
PHP  21. Piwik\Container\ContainerFactory->addPluginConfigs() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:57
PHP  22. Piwik\Plugin\Manager->getActivatedPluginsFromConfig() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:88
PHP  23. Piwik\ErrorHandler::errorHandler() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:782
PHP  24. Piwik\Log::warning() /home/vagrant/www/piwik/core/ErrorHandler.php:98
PHP  25. Piwik\Log::logMessage() /home/vagrant/www/piwik/core/Log.php:142
PHP  26. Piwik\Log::getInstance() /home/vagrant/www/piwik/core/Log.php:221
PHP  27. Piwik\Container\StaticContainer::get() /home/vagrant/www/piwik/core/Log.php:94
PHP  28. Piwik\Container\StaticContainer::getContainer() /home/vagrant/www/piwik/core/Container/StaticContainer.php:89
PHP  29. Piwik\Container\StaticContainer::createContainer() /home/vagrant/www/piwik/core/Container/StaticContainer.php:40
PHP  30. Piwik\Container\ContainerFactory->create() /home/vagrant/www/piwik/core/Container/StaticContainer.php:67
PHP  31. Piwik\Container\ContainerFactory->addPluginConfigs() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:57
PHP  32. Piwik\Plugin\Manager->getActivatedPluginsFromConfig() /home/vagrant/www/piwik/core/Container/ContainerFactory.php:88
PHP  33. Piwik\Plugin\Manager->makePluginsToLoad() /home/vagrant/www/piwik/core/Plugin/Manager.php:784
@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Feb 19, 2015
@mnapoli
Copy link
Contributor

mnapoli commented Feb 24, 2015

That has been fixed by @mattab already.

@mnapoli mnapoli closed this as completed Feb 24, 2015
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Feb 24, 2015
@mattab mattab modified the milestone: Short term Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

3 participants