除了查看产品外,网站工作正常,我只是收到以下错误
Invalid method Mage_Catalog_Model_Category::isComposite(Array
(
)
)
Trace:
#0 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/design/frontend/default/ma_enzo/template/magentothem/relatedslider/relatedslider.phtml(28): Varien_Object->__call('isComposite', Array)
#1 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/design/frontend/default/ma_enzo/template/magentothem/relatedslider/relatedslider.phtml(28): Mage_Catalog_Model_Category->isComposite()
#2 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#3 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#4 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#5 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#6 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#7 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#8 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#9 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('right', true)
#10 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/design/frontend/default/ma_enzo/template/page/2columns-right.phtml(54): Mage_Core_Block_Abstract->getChildHtml('right')
#11 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#12 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#13 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#14 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#15 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#16 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#17 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#18 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'no-route')
#19 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Cms/controllers/IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'no-route')
#20 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->noRouteAction()
#21 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('noRoute')
#22 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#24 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#25 /var/www/vhosts/MYTESTDOMAIN.co.uk/httpdocs/index.php(89): Mage::run('', 'store')
#26 {main}
任何想法?
答案 0 :(得分:0)
我会查看模板文件:app / design / frontend / default / ma_enzo / template / magentothem / relatedslider / relatedslider.phtml
您的自定义模板似乎没有正确引用Mage_Catalog_Model_Category,这可能是问题核心的空数组。如果您需要更多帮助,则应包含模板代码。