Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Cache Management problem with Refresh Catalog Rewrites
 
Andre
Member
 
Total Posts:  55
Joined:  2007-08-31
Mongolia
 

I’m having an issue with relation to the cache management update that needs to be run with the new version of M (.13700)

I go to system > cache management, check the Refresh Catalog Rewrites, then i get this error msg:

Fatal error: Call to a member function getChildren() on a non-object in /home/Andre/ydnacentral.com/user/htdocs/app/code/core/Mage/Catalog/Model/Url.php on line 368

Cheers
Andre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Hmm.. you probably have a store without root category configured.

Could you replace the line 368 in the file with error:

if ($category->getChildren()) {
with
if ($category && $category->getChildren()) {
 
Magento Community Magento Community
Magento Community
Magento Community
 
Andre
Member
 
Total Posts:  55
Joined:  2007-08-31
Mongolia
 

Moshe,

Many thanks - worked like a charm! smile

Andre

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top