- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2015
07:46 AM
11-09-2015
07:46 AM
Can't Create or Save Product After Patch
I get a 500 error when trying to create new or save current product. Nothing in system.log. Enabled ini_set('display_errors', 1); and have the following error:
Fatal error: Call to undefined method Mage_Catalog_Model_Resource_Product::getCategoryIdsWithAnchors() in /var/www/html/app/code/core/Mage/Catalog/Model/Product.php on line 1895
Here is the source from line 1887 -1900
/** * Get cahce tags associated with object id * * @return array */ public function getCacheIdTagsWithCategories() { $tags = $this->getCacheTags(); $affectedCategoryIds = $this->_getResource()->getCategoryIdsWithAnchors($this); foreach ($affectedCategoryIds as $categoryId) { $tags[] = Mage_Catalog_Model_Category::CACHE_TAG.'_'.$categoryId; } return $tags; }
New to Magento
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2015
08:02 AM
11-09-2015
08:02 AM
Re: Can't Create or Save Product After Patch
If i comment out the function i am able to save but this is obviously not the solution
/** * Get cahce tags associated with object id * * @return array * * public function getCacheIdTagsWithCategories() * { * $tags = $this->getCacheTags(); * $affectedCategoryIds = $this->_getResource()->getCategoryIdsWithAnchors($this); * foreach ($affectedCategoryIds as $categoryId) { * $tags[] = Mage_Catalog_Model_Category::CACHE_TAG.'_'.$categoryId; * } * return $tags; * } */