@alphaonex86 opened this Issue on January 12th 2018

An error occurred
Argument 1 passed to DI\ContainerBuilder::setDefinitionCache() must be an instance of Doctrine\Common\Bache\Cache, instance of Doctrine\Common\Cache\ArrayCache given, called in /home/first-world.info/stat/core/Container/ContainerFactory.php on line 69

  • serie of bug
@tsteur commented on January 12th 2018 Member

Is there maybe a typo in your config/config.php or config/config.ini.php file by any chance? "Bache" does not seem to appear anywhere in the source code or piwik.zip

@alphaonex86 commented on January 12th 2018

I don't have change the config/config.ini.php, I have just updated the site.
Cheers,

@alphaonex86 commented on January 14th 2018

To fix: comment core/Container/ContainerFactory.php line 69

@alphaonex86 commented on May 23rd 2018

New update, same problem, please fix it!

@alphaonex86 commented on May 23rd 2018

I pass more time to fix matomo than see my stats, I have always into matomo stats, ... well after years of use it since pre <1.0, I thinks it's time for me to give a try to GA.

@Findus23 commented on May 23rd 2018 Member

Hi @alphaonex86,

As @tsteur mentioned above, the Matomo source doesn't include the word Bache.

So can you please check, where it comes from? (e.g. with grep -r "Bache")

@alphaonex86 commented on May 23rd 2018

Hi,
No mention of Bache.
Some extract of my log:
[23-May-2018 10:55:42 UTC] PHP Notice: Undefined index: backends in /home/first-world.info/stat/core/Cache.php on line 92
[23-May-2018 10:55:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/first-world.info/stat/core/Cache.php on line 92
[23-May-2018 10:55:42 UTC] PHP Notice: Undefined index: backends in /home/first-world.info/stat/vendor/piwik/cache/src/Backend/Factory.php on line 34
[23-May-2018 10:55:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/first-world.info/stat/vendor/piwik/cache/src/Backend/Factory.php on line 34
[23-May-2018 10:55:42 UTC] PHP Notice: Undefined index: debug in /home/first-world.info/stat/core/Tracker/TrackerConfig.php on line 32
[23-May-2018 10:55:42 UTC] PHP Notice: Undefined index: debug_on_demand in /home/first-world.info/stat/core/Tracker/TrackerConfig.php on line 32
[23-May-2018 10:55:42 UTC] PHP Warning: Declaration of Piwik\Plugins\Ecommerce\Columns\RevenueSubtotal::onEcommerceOrderConversion(Piwik\Tr`cker\Request $request, Piwik\Tracker\Visitor $visitor, $action, Piwik\Tracker\GoalManager $goalManager) should be compatible with Piwik\Plugin\Dimension\ConversionDimension::onEcommerceOrderConversion(Piwik\Tracker\Request $request, Piwik\Tracker\Visitor $visitor, $action, Piwik\Tracker\GoalManager $goalManager) in /home/first-world.info/stat/plugins/Ecommerce/Columns/RevenueSubtotal.php on line 0
[23-May-2018 10:55:42 UTC] PHP Notice: Undefined index: record_statistics in /home/first-world.info/stat/core/Tracker/TrackerConfig.php on line 32
[23-May-2018 10:55:42 UTC] PHP Notice: Undefined index: record_statistics in /home/first-world.info/stat/core/Tracker/TrackerConfig.php on line 32
[23-May-2018 10:22:03 UTC] PHP Fatal error: Class DI\Definition\Helper\ArrayDefinitionExtensionHelper contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DI\Definition\Helper\DefinitionHelper::getDefinition) in /home/first-world.info/stat/vendor/php-di/php-di/src/DI/Definition/Helper/ArrayDefinitionExtensionHelper.php on line 15
[23-May-2018 10:22:19 UTC] PHP Fatal error: Class DI\Definition\Helper\ArrayDefinitionExtensionHelper contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DI\Definition\Helper\DefinitionHelper::getDefinition) in /home/first-world.info/stat/vendor/php-di/php-di/src/DI/Definition/Helper/ArrayDefinitionExtensionHelper.php on line 15
[23-May-2018 10:22:23 UTC] PHP Fatal error: Class DI\Definition\Helper\ArrayDefinitionExtensionHelper contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DI\Definition\Helper\DefinitionHelper::getDefinition) in /home/first-world.info/stat/vendor/php-di/php-di/src/DI/Definition/Helper/ArrayDefinitionExtensionHelper.php on line 15
[23-May-2018 10:22:47 UTC] PHP Fatal error: Class DI\Definition\Helper\ArrayDefinitionExtensionHelper contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DI\Definition\Helper\DefinitionHelper::getDefinition) in /home/first-world.info/stat/vendor/php-di/php-di/src/DI/Definition/Helper/ArrayDefinitionExtensionHelper.php on line 15
[23-May-2018 10:29:28 UTC] Error in Matomo (tracker): Invalid idSite: '0'
[23-May-2018 10:34:46 UTC] Error in Matomo (tracker): Invalid idSite: '0'
[23-May-2018 10:39:10 UTC] Error in Matomo: Your Matomo version 3.5.0 is up to date.
[23-May-2018 10:39:24 UTC] Error in Matomo: Argument 1 passed to Piwik\Container\ContainerFactory::addEnvironmentConfig() must be an instance of DI\ContainerBuilder, unknown given, called in /home/first-world.info/stat/core/Container/ContainerFactory.php on line 87
[23-May-2018 10:39:25 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Piwik\Container\ContainerFactory::addEnvironmentConfig() must be an instance of DI\ContainerBuilder, unknown given, called in /home/first-world.info/stat/core/Container/ContainerFactory.php on line 87 and defined in /home/first-world.info/stat/core/Container/ContainerFactory.php:108
[23-May-2018 10:39:33 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Piwik\Container\ContainerFactory::addEnvironmentConfig() must be an instance of DI\ContainerBuilder, unknown given, called in /home/first-world.info/stat/core/Container/ContainerFactory.php on line 87 and defined in /home/first-world.info/stat/core/Container/ContainerFactory.php:108
[23-May-2018 10:39:52 UTC] Error in Matomo: Argument 1 passed to Piwik\Container\ContainerFactory::addEnvironmentConfig() must be an instance of DI\ContainerBuilder, unknown given, called in /home/first-world.info/stat/core/Container/ContainerFactory.php on line 87
[23-May-2018 10:41:11 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Piwik\Container\ContainerFactory::addEnvironmentConfig() must be an instance of DI\ContainerBuilder, unknown given, called in /home/first-world.info/stat/core/Container/ContainerFactory.php on line 87 and defined in /home/first-world.info/stat/core/Container/ContainerFactory.php:108

@sgiehl commented on May 23rd 2018 Member

Do you have any configuration for [Cache] in your config.ini.php?

@alphaonex86 commented on May 23rd 2018

Hi, no.
My file content: https://pastebin.com/dVP5vGsw

@tsteur commented on May 23rd 2018 Member

It looks like you have a problem maybe with your config/global.ini.php. Make sure it looks like this: https://raw.githubusercontent.com/matomo-org/matomo/3.5.0/config/global.ini.php

@alphaonex86 commented on May 23rd 2018

Seam similar, any point to check? Cache and ChainedCache seam same.
MyISAM remain supported? Maybe I need convert to innoDB.

@alphaonex86 commented on May 23rd 2018

WARNING: /home/first-world.info/stat/core/Category/Subcategory.php(67): Notice - Undefined variable: this - Matomo 3.5.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

@tsteur commented on May 23rd 2018 Member

MyISAM is supported but you should definitely move to InnoDB re performance etc.

WARNING: /home/first-world.info/stat/core/Category/Subcategory.php(67): Notice - Undefined variable: this - Matomo 3.5.0

Not sure how this would happen. It basically cannot trigger this notice. It seems something is quite wrong on your server. Maybe you can update PHP, use another server or something.

If you have any third party plugins installed that are not from Matomo / InnoCraft I recommend you remove them.

@alphaonex86 commented on May 23rd 2018

Security say lot of file have integraity problem, then I have overwrite it with clean install.
Then I presume the updater corrupt it, because don't have corrupted file before.
No third party plugins.

@SejlaG commented on July 5th 2019

Hi,

We are experiencing the exact same problem. It occurred right after updating the heatmap&session recording plugin.

Update: Restarting the server resolved the issue.

Best Seki

Powered by GitHub Issue Mirror