phaidon / Piwik

Piwik module for Zikula
8 stars 2 forks source link

error after upgrade: Classname Phaidon\PiwikModule\Block\OptOutBlock does not exist #23

Open MrMontesa opened 8 years ago

MrMontesa commented 8 years ago

Hey, I just tested @Guite new version of piwik on a fresh 1.4.4 install. Install works and I was able to configure Piwik. But when accessing the blocks module I get the following error: Classname Phaidon\PiwikModule\Block\OptOutBlock does not exist

Heres the stack trace:

in system/BlocksModule/Api/BlockFactoryApi.php at line 65   -
        }
        if (!class_exists($blockClassName)) {
            throw new \RuntimeException(sprintf('Classname %s does not exist.', $blockClassName));
        }
        if (!is_subclass_of($blockClassName, 'Zikula\BlocksModule\BlockHandlerInterface') && !is_subclass_of($blockClassName, 'Zikula_Controller_AbstractBlock')) {
            throw new \RuntimeException(sprintf('Block class %s must implement Zikula\BlocksModule\BlockHandlerInterface or be a subclass of Zikula_Controller_AbstractBlock.', $blockClassName));
at BlockFactoryApi ->getInstance ('Phaidon\PiwikModule\Block\OptOutBlock', object(PhaidonPiwikModule)) 
in system/BlocksModule/Api/BlockApi.php at line 155   + 
at BlockApi ->getAvailableBlockTypes (object(ExtensionEntity)) 
in system/BlocksModule/Api/BlockApi.php at line 188   + 
at BlockApi ->getModulesContainingBlocks () 
in system/BlocksModule/Controller/AdminController.php at line 70   + 
at AdminController ->viewAction (object(Zikula_Request_Http)) 
at call_user_func_array (array(object(AdminController), 'viewAction'), array(object(Zikula_Request_Http))) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144   + 
at HttpKernel ->handleRaw (object(Zikula_Request_Http), '1') 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64   + 
at HttpKernel ->handle (object(Zikula_Request_Http), '1', true) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69   + 
at ContainerAwareHttpKernel ->handle (object(Zikula_Request_Http), '1', true) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185   + 
at Kernel ->handle (object(Zikula_Request_Http)) 
in index.php at line 23 

As the erros is in BlocksModule not sure if this is Piwik or Core issue. Let me know if I can be of any help. Thanks

Guite commented 8 years ago

Fixed in https://github.com/Guite/Piwik/commit/641c5f5bd45d090ba335426779175233257c2220