cancel
Showing results for 
Search instead for 
Did you mean: 

Frontend error - Mage_Page_Block_Html_Topmenu

Frontend error - Mage_Page_Block_Html_Topmenu

Hi

 

I am using the latest CE version, and this morning received the following error whilst accessing the frontend (admin is working fine). Any help in finding a solution would be much appreciated.

 

No changes were made to the website itself since last last, although I did clear the cache in admin this morning.

 

There has been an error processing your request
Invalid method Mage_Page_Block_Html_Topmenu::renderCategoriesMenuHtml(Array
(
    [0] => 0
    [1] => 0
    [2] => 
    [3] => mobile
)
)
Trace:
#0 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/design/frontend/buyshop/default/template/page/html/topmenu.phtml(44): Varien_Object->__call('renderCategorie...', Array)
#1 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/design/frontend/buyshop/default/template/page/html/topmenu.phtml(44): Mage_Page_Block_Html_Topmenu->renderCategoriesMenuHtml(0, 0, '', 'mobile')
#2 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(241): include('/nfs/c11/h03/mn...')
#3 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/buysho...')
#4 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#6 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#7 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#8 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#9 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('topMenu', true)
#10 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/design/frontend/buyshop/default/template/page/html/header.phtml(53): Mage_Core_Block_Abstract->getChildHtml('topMenu')
#11 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(241): include('/nfs/c11/h03/mn...')
#12 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/buysho...')
#13 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#14 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#15 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#16 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('header', true)
#17 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/design/frontend/buyshop/default/template/page/2columns-right.phtml(43): Mage_Core_Block_Abstract->getChildHtml('header')
#18 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(241): include('/nfs/c11/h03/mn...')
#19 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/buysho...')
#20 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#21 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#22 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#23 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#24 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#25 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_PageController), '2')
#26 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Cms/controllers/PageController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_PageController), '2')
#27 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_PageController->viewAction()
#28 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#29 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#30 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#31 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#32 xxxxxxdomains/xxxxxxxxxx.com/html/xxxxxx/index.php(87): Mage::run('', 'store')
#33 {main}
Error log record number: 500863605785
4 REPLIES

Re: Frontend error - Mage_Page_Block_Html_Topmenu

Hi @stuartoh,

 

Looks like you have installede the "buyshop" theme ?

app/design/frontend/buyshop/default/template/page/html/topmenu.phtml(44):

Top is saying the the topmenu.phtml file is missing?

 

Could you have misplaced some files during theme installation / copy ?

 

 

-- Best regards --
Kent Christiansen / @KentChrDK / Magento Certified Solution Specialist / Visit my site (DK)

Re: Frontend error - Mage_Page_Block_Html_Topmenu

Hi

 

No, all the files are in situ. The strangest thing, though - when I restored all the files from the var/ folder from last nights backup, the frontend worked, but as soon as I refreshed or cleared the cache, I get the same error message at frontend. The Layout section in cache management reads 'INVALIDATED'

Re: Frontend error - Mage_Page_Block_Html_Topmenu

Hi that sound stange.

 

I would try to re-uploade all theme files and the clearing the cache incl. emptying the /var folders.

 

If this dosen't help, we will have to have more developer skilled people replying Smiley Happy

-- Best regards --
Kent Christiansen / @KentChrDK / Magento Certified Solution Specialist / Visit my site (DK)

Re: Frontend error - Mage_Page_Block_Html_Topmenu

For "INVALIDATED" please see this from Inchoo, could be helping you out: 

http://inchoo.net/magento/magento-debugging/magento-how-to-fix-one-or-more-of-the-cache-types-are-in...

 

-- Best regards --
Kent Christiansen / @KentChrDK / Magento Certified Solution Specialist / Visit my site (DK)