Magento 出现 ……\Front.php 解决办法

Magento 出现 ……\Front.php 解决办法

我们公司由于在开发Magento的过程中购买了大量的插件,以致于在运行代码出现这样那样的问题,下面是问题之一

Fatal error: Call to a member function select() on boolean in D:\www\lollicupStore2\app\code\local\Amasty\Fpc\Model\Fpc\Front.php on line 1001

解决办法:

在/app/etc/ 下面找到amfpc.xml 的配置文件 即 \app\etc\amfpc.xml

在该文件中找到这样的代码

<?xml version="1.0"?>
<config>
    <global>
        <cache>
            <request_processors>
                <amfpc>Amasty_Fpc_Model_Fpc_Front</amfpc>
            </request_processors>
        </cache>
        <amfpc>
        ......
        ......
</config>

将上面的<cache>部分代码注释即可:

<?xml version="1.0"?>
<config>
    <global>
       <!--<cache>-->
            <!--<request_processors>-->
                <!--<amfpc>Amasty_Fpc_Model_Fpc_Front</amfpc>-->
            <!--</request_processors>-->
        <!--</cache>-->
        <amfpc>
        ......
        ......
</config>

然后刷新网站即可。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注