0

I have installed SEO Layered Navigetion (http://www.magentocommerce.com/magento-connect/layered-navigation-seo.html) and Lesti FPC. To make the SEO Layered Navigetion work with Lesti FPC i added to Lesti FPC settings to Uri Params my filterable attribute codes. After that my filters in layered navigation is work, but when i press "Clear all" to clear filters, there is an error "An error occurred, please try again later" in Layered Navigation SEO (This error appear only when Lesti FPS is enabled). Help me please.

7
  • Look in the var/report folder for errors, or in var/log and post the error in here if it does not give you an idea.
    – Marius
    Aug 5, 2014 at 8:48
  • in var/system.log ERR (3): Notice: Undefined offset: 1 in /home/c/cl36863/obuvnoj/public_html/app/code/community/Lesti/Fpc/Helper/Data.php on line 155 in app/code/community/Lesti/Fpc/Helper/Data.php on line 155 is: $regex = $pair[1];
    – redwert
    Aug 5, 2014 at 9:41
  • What the vendor says?
    – Amasty
    Aug 5, 2014 at 10:20
  • Its both free extensions. I try to write to gordon lesti, but he is not ansewer me.
    – redwert
    Aug 5, 2014 at 11:56
  • 2
    I'm voting to close this question as off-topic because its about two 3-d party extensions.
    – Amasty
    Feb 13, 2015 at 10:45

1 Answer 1

3

I ran into a similar issue with an other module that used an Ajax call with the same URL as the page it was called from.

You'll need to add your own module with the following config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <[Namespace]_[Module]>
            <version>0.1.0</version>
        </[Namespace]_[Module]>
    </modules>
    <global>
        <events>
            <controller_action_predispatch>
                <observers>
                    <[namespace]_[module]_controller_action_predispatch>
                        <class>[Namespace]_[Module]_Model_Observer</class>
                        <method>processPreDispatch</method>
                    </[namespace]_[module]_controller_action_predispatch>
                </observers>
            </controller_action_predispatch>
        </events>
    </global>
</config> 

And model Observer.php

class [Namespace]_[Module]_Model_Observer
{
    public function processPreDispatch(Varien_Event_Observer $observer)
    {
        $action = $observer->getEvent()->getControllerAction();
        $isAjax = Mage::app()->getRequest()->getParam('is_ajax');

        // Check to see if $action is a Category controller
        if ($action instanceof Mage_Catalog_CategoryController && $isAjax == '1') 
        {
            $cache = Mage::app()->getCacheInstance();
            $cache->banUse('full_page'); // or whatever the FPC cache tag is
        }
    }
}

Not the answer you're looking for? Browse other questions tagged or ask your own question.