@froger-me opened this Issue on August 10th 2018

After updating to 3.6.0-b4, visiting the index shows:

Entry “Piwik\Auth” cannot be resolved: the class is not instantiableFull definition:Object ( class = #NOT INSTANTIABLE# Piwik\Auth scope = singleton lazy = false)

The issue is I cannot downgrade back to 3.6.0-b3 (database backup failed).

Could you please indicate either:

  • the steps (SQL queries) to downgrade the database manually back to 3.6.0-b3
  • a manual quickfix of the 3.6.0-b4 code base

... to (at least) get Matomo back up and running after upgrade to 3.6.0-b4?

@froger-me commented on August 10th 2018

Downgraded to 3.6.0-b1 to get the issue go away, only manually changed the version in option table, did not revert the database changes done by b2, 3 and 4

@sgiehl commented on August 10th 2018 Member

@froger-me do you have any third party plugins installed like Google Authenticator?

@froger-me commented on August 11th 2018

Now that you mention it...

Bandwidth (v3.1.1)
CustomDimensions (v3.1.3)
ExampleRssWidget (v1.0)
LoginLdap (v4.0.5)
PiwikPro (v3.6.0-b1)
VisitorAvatar (v0.2.2)
BotTracker (v1.02)

@sgiehl commented on August 11th 2018 Member

Guess that might be caused by LoginLdap then...

@diosmosis commented on August 12th 2018 Member

@froger-me Does the update work if you temporarily disable LoginLdap? LoginLdap should work with the latest core code. If that doesn't change things, then it might be due to the PiwikPro plugin, though I don't know what's in that one.

@froger-me commented on August 12th 2018

@diosmosis Hi - I am sorry, the install I am maintaining is in a production environment (and yes, beta updates were enabled and that was not really my decision). I have recommended not to have it enabled anymore, as it is imperative we get no downtime.

@diosmosis commented on August 12th 2018 Member

@froger-me I see, if you experience the same problem later in a staging environment or something, let us know.

@XinfinityoO commented on August 12th 2018

I am slo having similar issues.
using beta 3 had to roll back to beta 1
also using:

bandwidth
loginldap

and why is this issue closed ?? @froger-me did you manage to find a fix ? or did you just roll back to previous version ?

@diosmosis commented on August 12th 2018 Member

I looked at the code and I think I know what's causing this, will post a PR that can be tested soon.

@diosmosis commented on August 12th 2018 Member

These changes should fix this issue: https://github.com/matomo-org/matomo/pull/13279

@XinfinityoO commented on August 15th 2018

issue still in beta 5 reverted back to beta 1. has the changes been merged yet ??

@sgiehl commented on August 15th 2018 Member

https://github.com/matomo-org/matomo/pull/13279 has not yet been merged. But you could test it by applying the changed manually after updating

@minusf commented on June 6th 2019

this seems to be still broken in 3.9.1. when the Ldap plugin is enabled, the cronjob core archive fails. This seems to be an interesting combination of containers and ldap:

ERROR [2019-06-06 14:54:55] 86394  There was an error while regenerating container releases: Entry "Piwik\Auth" cannot be resolved: the class is not instantiable
Full definition:
Object (
    class = #NOT INSTANTIABLE# Piwik\Auth
    scope = singleton
    lazy = false
)<a href='/0'>#0</a> /export/matomo/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(243): DI\Definition\Exception\DefinitionException::create(Object(DI\Definition\ObjectDefinition), 'Entry "Piwik\\Au...')
<a href='/1'>#1</a> /export/matomo/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(126): DI\Definition\Resolver\ObjectCreator->assertClassIsInstantiable(Object(DI\Definition\ObjectDefinition))
<a href='/2'>#2</a> /export/matomo/vendor/php-di/php-di/src/DI/Definition/Resolver/ObjectCreator.php(70): DI\Definition\Resolver\ObjectCreator->createInstance(Object(DI\Definition\ObjectDefinition), Array)
<a href='/3'>#3</a> /export/matomo/vendor/php-di/php-di/src/DI/Definition/Resolver/ResolverDispatcher.php(58): DI\Definition\Resolver\ObjectCreator->resolve(Object(DI\Definition\ObjectDefinition), Array)
<a href='/4'>#4</a> /export/matomo/vendor/php-di/php-di/src/DI/Container.php(303): DI\Definition\Resolver\ResolverDispatcher->resolve(Object(DI\Definition\ObjectDefinition), Array)
<a href='/5'>#5</a> /export/matomo/vendor/php-di/php-di/src/DI/Container.php(131): DI\Container->resolveDefinition(Object(DI\Definition\ObjectDefinition))
<a href='/6'>#6</a> /export/matomo/core/Container/StaticContainer.php(80): DI\Container->get('Piwik\\Auth')
<a href='/7'>#7</a> /export/matomo/core/Piwik.php(567): Piwik\Container\StaticContainer::get('Piwik\\Auth')
<a href='/8'>#8</a> /export/matomo/plugins/CoreHome/Menu.php(32): Piwik\Piwik::getLoginPluginName()
<a href='/9'>#9</a> /export/matomo/plugins/CoreHome/Menu.php(20): Piwik\Plugins\CoreHome\Menu->getLoginModule()
<a href='/10'>#10</a> /export/matomo/core/Menu/MenuTop.php(57): Piwik\Plugins\CoreHome\Menu->configureTopMenu(Object(Piwik\Menu\MenuTop))
<a href='/11'>#11</a> /export/matomo/plugins/TagManager/Controller.php(207): Piwik\Menu\MenuTop->getMenu()
<a href='/12'>#12</a> /export/matomo/plugins/TagManager/Controller.php(53): Piwik\Plugins\TagManager\Controller->renderTemplate('<a class='mention' href='https://github.com/TagManager'>@TagManager</a>/deb...')
<a href='/13'>#13</a> [internal function]: Piwik\Plugins\TagManager\Controller->debug()
<a href='/14'>#14</a> /export/matomo/core/FrontController.php(589): call_user_func_array(Array, Array)
<a href='/15'>#15</a> /export/matomo/core/FrontController.php(165): Piwik\FrontController->doDispatch('TagManager', 'debug', Array)
<a href='/16'>#16</a> /export/matomo/plugins/TagManager/Context/WebContext/JavaScriptTagManagerLoader.php(72): Piwik\FrontController->dispatch('TagManager', 'debug')
<a href='/17'>#17</a> /export/matomo/plugins/TagManager/Context/WebContext.php(166): Piwik\Plugins\TagManager\Context\WebContext\JavaScriptTagManagerLoader->getPreviewJsContent()
<a href='/18'>#18</a> /export/matomo/plugins/TagManager/Context/WebContext.php(152): Piwik\Plugins\TagManager\Context\WebContext->addPreviewCode('/*!!\n * Matomo ...', true, true, Array)
<a href='/19'>#19</a> /export/matomo/plugins/TagManager/Model/Container.php(123): Piwik\Plugins\TagManager\Context\WebContext->generate(Array)

any reason why this is closed if not merged?

Powered by GitHub Issue Mirror