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

Argument 1 passed to DI\ContainerBuilder::setDefinitionCache() must be an instance of #12438

Open
alphaonex86 opened this Issue Jan 12, 2018 · 14 comments

Comments

Projects
None yet
4 participants
@alphaonex86

alphaonex86 commented Jan 12, 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

This comment has been minimized.

Show comment
Hide comment
@tsteur

tsteur Jan 12, 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

Member

tsteur commented Jan 12, 2018

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

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 Jan 12, 2018

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

alphaonex86 commented Jan 12, 2018

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

@alphaonex86

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 Jan 14, 2018

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

alphaonex86 commented Jan 14, 2018

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

@alphaonex86

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 May 23, 2018

New update, same problem, please fix it!

alphaonex86 commented May 23, 2018

New update, same problem, please fix it!

@alphaonex86

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 May 23, 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.

alphaonex86 commented May 23, 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

This comment has been minimized.

Show comment
Hide comment
@Findus23

Findus23 May 23, 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")

Member

Findus23 commented May 23, 2018

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

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 May 23, 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

alphaonex86 commented May 23, 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

This comment has been minimized.

Show comment
Hide comment
@sgiehl

sgiehl May 23, 2018

Member

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

Member

sgiehl commented May 23, 2018

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

@alphaonex86

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 commented May 23, 2018

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

@tsteur

This comment has been minimized.

Show comment
Hide comment
@tsteur

tsteur May 23, 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

Member

tsteur commented May 23, 2018

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

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 May 23, 2018

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

alphaonex86 commented May 23, 2018

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

@alphaonex86

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 May 23, 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)

alphaonex86 commented May 23, 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

This comment has been minimized.

Show comment
Hide comment
@tsteur

tsteur May 23, 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.

Member

tsteur commented May 23, 2018

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

This comment has been minimized.

Show comment
Hide comment
@alphaonex86

alphaonex86 May 23, 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.

alphaonex86 commented May 23, 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.

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