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

RSS Feeds Error with 1.3 and flat file
 
ZYBR
Jr. Member
 
Total Posts:  6
Joined:  2008-11-10
Lakeland, FL
 

I am getting the following error on all of my rss feed pages:

Fatal error: Call to undefined method Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Flat_Collection::addAttributeToFilter() in /home/zybrcom/public_html/app/code/core/Mage/Rss/Block/List.php on line 182

Only this error shows up and none of the feeds shows. This error only occurs when I have the flat file options set to “yes” under System>Configuration>Catalog>Frontend. When I revert it back to the old system by setting it to “no” there are no errors and the rss feeds show once again. Is there anyone else out there that is having this same problem or has any idea what could be causing it? I am running Magento 1.3 with a mofified modern theme which was also upgraded to 1.3. Thanks in advance

 
Magento Community Magento Community
Magento Community
Magento Community
 
Costa
Member
 
Avatar
Total Posts:  56
Joined:  2007-11-21
Shenzhen China
 

I am getting the same error when trying to access RSS page. I have turned on Flat Cats and Prods and rebuilt them. Has anyone have any clues?
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
naujasdizainas
Sr. Member
 
Avatar
Total Posts:  128
Joined:  2007-11-04
Lithuania, Vilnius
 

1. ) In file app/code/core/Mage/Rss/Block/List.php arround ~ 178 line

$collection $category->getCollection()
                ->
addAttributeToSelect('url_key')
                ->
addAttributeToSelect('name')
                ->
addAttributeToSelect('is_anchor')
                ->
addAttributeToFilter('is_active',1)
                ->
addIdFilter($nodeIds)
               ->
addAttributeToSort('name')
                ->
load();
Change to
$collection $category->getCollection()
                ->
addAttributeToSelect('url_key')
                ->
addAttributeToSelect('name')
                ->
addAttributeToSelect('is_anchor')
                ->
addAttributeToSelect('is_active',1)
                ->
addIdFilter($nodeIds)
                ->
addAttributeToSelect('name')
                ->
load();
2) app/code/core/Mage/Rss/Block/Catalog/Category.php ~ 74 line

->addAttributeToFilter('is_active',1)
Change to
->addAttributeToSelect('is_active',1)
 
Magento Community Magento Community
Magento Community
Magento Community
 
APEofGOD
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-05-28
 

Thanks, it solved my problem!

 
Magento Community Magento Community
Magento Community
Magento Community
 
APEofGOD
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-05-28
 

Just an update, it fixes the RSS problem, but crashes product categories in the backend. We need another fix for the problem.

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