本文介绍了Magento致命错误:在非对象上调用成员函数getSortedChildren()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了Magento CE 1.9版本,并且在主页上调用目录后出现错误.问题似乎与 list.phtml 有关.
I have installed Magento CE 1.9 version and getting error after calling Catalog on Home page. Issue seems to be related with list.phtml.
安装后我没有进行任何更改,似乎Magento 1.9版附带了此问题.
I didn't change anything after installation and it seems this issue came with Magento 1.9 edition.
目录"页面上的列表"和网格"视图均出现问题,因为这两个视图都被调用.
Issue is occurring for both List and Grid view on Catalog page as it is being called for both views.
是否有解决此问题的最佳解决方案?
Is there any best solution to resolve this issue ?
推荐答案
只需在第134行删除方法->getSortedChildren();
you just have to delete the method ->getSortedChildren();
at line 134
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
所以你有
$_nameAfterChildren = $this->getChild('name.after');
这篇关于Magento致命错误:在非对象上调用成员函数getSortedChildren()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!