GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 159 forks source link

installed fpc using modman and get blank page with the following error #318

Closed vicding closed 6 years ago

vicding commented 6 years ago

The error message is: AH01071: Got error 'PHP message: PHP Fatal error: Call to a member function addStorageType() on boolean in includes/src/__default.php on line 11656\n'

The code is $messageBlock = $action->getLayout()->getMessagesBlock(); foreach (array('catalog/session', 'checkout/session', 'customer/session') as $storageType) { $storage = Mage::getSingleton($storageType); if ($storage) { $messageBlock->addStorageType($storageType); $messageBlock->addMessages($storage->getMessages(true)); } }

I am on ubuntu 16.04 + nginx + php7.0-fpm with magento 1.9.3.7

There is no custom fpc configure done yet. Can you please take a look?

GordonLesti commented 6 years ago

Hello @vicding I hope this issue may helps you.

Best Regards Gordon

vicding commented 6 years ago

Many thanks! this solved my issue.