Pregunta

Actualicé ayer a 1.9 CE y ahora mis páginas de categoría recibo este error fatal:

Error fatal: llame al método indefinido Mage_catalog_model_resource_category_flat_collection :: JoinurlReWrite () in /home/senorehe/public_html/app/code/local/mage/catalog/block/navigation.php en la línea 155

Esta es la sección a la que se refiere

public function getCurrentChildCategories()
   {
        $layer = Mage::getSingleton('catalog/layer');
        $category   = $layer->getCurrentCategory();
        /* @var $category Mage_Catalog_Model_Category */
        $collection = Mage::getModel('catalog/category')->getCollection();
        /* @var $collection Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection */
        $collection->addAttributeToSelect('url_key')
            ->addAttributeToSelect('name')
            ->addAttributeToSelect('is_anchor')
            ->addAttributeToSelect('image') 
            ->addAttributeToFilter('is_active', 1)
            ->addIdFilter($category->getChildren())
            ->setOrder('position', 'ASC')
line 155        ->joinUrlRewrite()
            ->load();

        $productCollection = Mage::getResourceModel('catalog/product_collection');
        $layer->prepareProductCollection($productCollection);
        $productCollection->addCountToCategories($collection);
        return $collection;
    } 

He intentado reintegrar la url, enjuagando mi mage_core_url_rewrite luego reindexando. Pero nada había funcionado hasta ahora.

¿Puede alguien ayudarme con esto?

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top