cancel
Showing results for 
Search instead for 
Did you mean: 

Mage::throwException('Invalid block t...') v1.9.2.2

Mage::throwException('Invalid block t...') v1.9.2.2

Hello,

 

Im triing to catch that little guy, but have some problems.

Magento CE 1.9.2.2 

 

exception 'Mage_Core_Exception' with message 'Invalid block type: MyCompany_Catalog_Block_Category_View' in D:\wamp\www\magen19\app\Mage.php:595
Stack trace:
#0 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\Layout.php(495): Mage::throwException('Invalid block t...')
#1 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('catalog/categor...', Array)
#2 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\Layout.php(472): Mage_Core_Model_Layout->createBlock('catalog/categor...', 'category.produc...')
#3 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\Layout.php(239): Mage_Core_Model_Layout->addBlock('catalog/categor...', 'category.produc...')
#4 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 D:\wamp\www\magen19\app\code\core\Mage\Core\Controller\Varien\Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 D:\wamp\www\magen19\app\code\core\Mage\Catalog\controllers\CategoryController.php(148): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 D:\wamp\www\magen19\app\code\core\Mage\Core\Controller\Varien\Action.php(418): Mage_Catalog_CategoryController->viewAction()
#9 D:\wamp\www\magen19\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#10 D:\wamp\www\magen19\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 D:\wamp\www\magen19\app\code\core\Mage\Core\Model\App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#12 D:\wamp\www\magen19\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#13 D:\wamp\www\magen19\index.php(83): Mage::run('', 'store')
#14 {main}

As far as I remember, I didnt edit anything according to category views. Can someone give me some advices, where to look for the problem?

I have only this added in my local.xml:

 

<catalog_category_default>
		<reference name="root">
		<action method="setTemplate">
			<template>page/2columns-left.phtml</template>
		</action>
		</reference>
 </catalog_category_default>

On the category listing pages I see nothing, looks like my template cant grab the 'content'

 

+1 if someone can explain that MyCompany_ tag, would release me from my nightmares. 

Thanks a lot

4 REPLIES 4

Re: Mage::throwException('Invalid block t...') v1.9.2.2

Hi @pckownz

If you are using custom blocks in Magento 1.9.2.2 then you have to white list those blocks.

In Magento admin System>Permissions>blocks

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Mage::throwException('Invalid block t...') v1.9.2.2

Hello,

Thanks for your advice.

I did, I allowed every single custom block, but it still throwing me this exception.

(And still doesnt show anything on Category page. Home and Product works fine. I didnt modify anything on list.phtml, nor the core files or base templates)

Re: Mage::throwException('Invalid block t...') v1.9.2.2

BUMP 

Re: Mage::throwException('Invalid block t...') v1.9.2.2

Hey having the same issue after upgrading to 1.9.2.4 

 

did you solve this?