我正在制作一个目前正在开发的Magento网站。网站可过滤的边栏工作正常,它将按属性,类别,价格和制造商过滤但是我刚刚清除了缓存,它突然被替换为以下错误消息:
警告:include(Mage.php):无法打开流:没有这样的文件或 第93行/var/www/magento/lib/Varien/Autoload.php目录 警告:include():无法打开'Mage.php'以包含在内 (include_path中='/无功/网络/ Magento的/应用程序/代码/本地:/无功/网络/ Magento的/应用程序/代码/社区:/无功/网络/ Magento的/应用程序/代码/芯:/无功/网络/的magento / LIB::在/ usr /共享/ PHP:在/ usr /共享/梨') 在第93行的/var/www/magento/lib/Varien/Autoload.php
错误:
致命错误:未找到“法师”类 第244行/var/www/magento/app/code/core/Mage/Core/functions.php
该站点在EC2 AWS实例上的Magento Community 1.8.1上运行。没有编辑核心文件,所以我无法理解为什么消息指向核心文件。
任何建议都会令人惊叹!谢谢:))
编辑:我从New Relic获得了错误跟踪,详细介绍了一下:
…eErrorHandler called at /var/www/magento/app/code/core/Mage/Core/
functions.php (244)
…rHandler called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (241)
…etchView called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (241)
…etchView called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (272)
…nderView called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (286)
…:_toHtml called at /var/www/magento/app/code/core/Mage/Core/Block/
Abstract.php (919)
…:toHtml called at /var/www/magento/app/code/core/Mage/Core/Block/Text/
List.php (43)
…:_toHtml called at /var/www/magento/app/code/core/Mage/Core/Block/
Abstract.php (919)
…::toHtml called at /var/www/magento/app/code/core/Mage/Core/Block/
Abstract.php (637)
…hildHtml called at /var/www/magento/app/code/core/Mage/Core/Block/
Abstract.php (581)
in Mage_Core_Block_Abstract::getChildHtml called at /var/www/magento/app/design/frontend/metrostore/default/template/page/category.phtml (58)
… include called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (241)
…etchView called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (272)
…nderView called at /var/www/magento/app/code/core/Mage/Core/Block/
Template.php (286)
…:_toHtml called at /var/www/magento/app/code/core/Mage/Core/Block/
Abstract.php (919)
…ct::toHtml called at /var/www/magento/app/code/core/Mage/Core/Model/
Layout.php (555)
…alled at /var/www/magento/app/code/core/Mage/Core/Controller/Varien/
Action.php (390)
…/www/magento/app/code/core/Mage/CatalogSearch/controllers/
ResultController.php (80)
…alled at /var/www/magento/app/code/core/Mage/Core/Controller/Varien/
Action.php (418)
…/var/www/magento/app/code/core/Mage/Core/Controller/Varien/Router/
Standard.php (250)
…called at /var/www/magento/app/code/core/Mage/Core/Controller/Varien/
Front.php (172)
…ont::dispatch called at /var/www/magento/app/code/core/Mage/Core/Model/
App.php (354)
in Mage_Core_Model_App::run called at /var/www/magento/app/Mage.php (684)
in Mage::run called at /var/www/magento/index.php (87)
看起来它可能是category.phtml的第58行,这是它应该看起来的样子吗?
<?php if ($categorysidebar == 'left') { ?>
<div class="category-left">
<div class="col-main">
<?php echo $this->getChildHtml('global_messages') ?>
<?php echo $this->getChildHtml('content') ?>
</div>
<div class="col-left sidebar"><?php echo $this->getChildHtml('left') ?></div>
</div>
<?php } elseif ($categorysidebar == 'right') { ?>
<div class="category-right">
<div class="col-main">
<?php echo $this->getChildHtml('global_messages') ?>
<?php echo $this->getChildHtml('content') ?>
</div>
<div class="col-left sidebar"><?php echo $this->getChildHtml('left') ?></div>
</div>
<?php } elseif ($categorysidebar == 'full') { ?>
<div class="category-full">
<div class="col-left sidebar"><?php echo $this->getChildHtml('left') ?></div>
<div class="col-main">
<?php echo $this->getChildHtml('global_messages') ?>
<?php echo $this->getChildHtml('content') ?>
</div>
</div>
答案 0 :(得分:0)
最终找到了解决方案。在后端允许符号链接。
如果您遇到同样的问题,请转到系统&gt;配置&gt;开发人员&gt;允许符号链接
只需禁用该选项,希望它也可以为您提供帮助。