Magento – Error in Manage Catalog page in admin after upgrade to magento 1.8 when category flat data is enabled

admincategoryce-1.8.0.0indexupgrade

We have the below error displaying in the browser when we navigate to Catalog > Manage Categories

Fatal error: Call to undefined method
Mage_Catalog_Model_Resource_Category_Flat::loadAllAttributes() in
/includes/src/__default.php on line 27697

We have compiler enabled. When compiler is disabled the error reads:

Fatal error: Call to undefined method
Mage_Catalog_Model_Resource_Category_Flat::loadAllAttributes() in
/app/code/local/Mage/Catalog/Model/Category.php on line 289

When we change "use flat catalog category" to disabled, the error disappears and we can use our manage categories area as normal. This only started occuring after upgrading to Magento 1.8 from 1.7.0.2 last week.

We have tried reindexing all processes etc, but no change.

Everything else in our site is fine, we just cannot access this page from the admin area! 🙁

Any ideas on how to resolve?

Best Answer

Delete file from local folder (or rename it to keep changes if you need them). Magento will use original file and there will be no error more.

/app/code/local/Mage/Catalog/Model/Category.php