RSS订阅华夏名网虚拟主机折扣优惠
你的位置:首页 » 常见问题 » 正文

Magento网站搬家出现 There has been an error processing your request 解决

选择字号: 超大 标准 发布时间:2015年01月19日 | 作者:xi88 | 0个评论 | 9358人浏览

Magento网站搬家出现 There has been an error processing your request

网站搬家之后出现以下提示:

Magento

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 1236842047745

数据库导入成功,数据库配置文件/app/etc/local.xml

                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[glangwai_gan99]]></username>
                    <password><![CDATA[guuhAwqoWf]]></password>
                    <dbname><![CDATA[glangwai_gan99]]></dbname>
也改了。

解决方法:

复制magento根目录下 /errors/local.xml.sample 并命名为/errors/local.xml

改变magento根目录下/lib/Zend/Cache/Backend/File.php

文件里面

protected $_options = array(

        'cache_dir' => NULL,

        'file_locking' => true,





protected $_options = array(

        'cache_dir' => 'tmp/',

        'file_locking' => true,


然后在根目录下创建tmp文件夹.

再然后刷新前台,”There has been an error processing your request” 就没有了,出现的是错误提示的也没,然后根据错误提示方便寻找解决答案!

简单的来说就是给cache_dir设置一个目录为‘tmp/’

注意这个不要改漏掉了哦:复制magento根目录下 /errors/local.xml.sample 并命名为/errors/local.xml

如果出现以下问题,则是主机不支持pdo了,找虚拟主机商处理,或者自己切换下php版本,安装pdo.

There has been an error processing your request

The PDO extension is required for this adapter but the extension is not loaded

Trace:
#0 /home/payment/public_html/lib/Zend/Db/Adapter/Abstract.php(248): Zend_Db_Adapter_Pdo_Abstract->setFetchMode(2)
#1 /home/payment/public_html/app/code/core/Mage/Core/Model/Resource.php(165): Zend_Db_Adapter_Abstract->__construct(Array)
#2 /home/payment/public_html/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#3 /home/payment/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#4 /home/payment/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#5 /home/payment/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#6 /home/payment/public_html/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#7 /home/payment/public_html/app/code/core/Mage/Core/Model/Cache.php(478): Mage_Core_Model_Resource_Cache->getAllOptions()
#8 /home/payment/public_html/app/code/core/Mage/Core/Model/Cache.php(520): Mage_Core_Model_Cache->_initOptions()
#9 /home/payment/public_html/app/code/core/Mage/Core/Model/App.php(1183): Mage_Core_Model_Cache->canUse('config')
#10 /home/payment/public_html/app/code/core/Mage/Core/Model/Config.php(414): Mage_Core_Model_App->useCache('config')
#11 /home/payment/public_html/app/code/core/Mage/Core/Model/Config.php(294): Mage_Core_Model_Config->_canUseCacheForInit()
#12 /home/payment/public_html/app/code/core/Mage/Core/Model/App.php(413): Mage_Core_Model_Config->loadModulesCache()
#13 /home/payment/public_html/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#14 /home/payment/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /home/payment/public_html/index.php(144): Mage::run('', 'store')
#16 {main}

标签:

0

文章作者:华夏名网
本文地址:http://hubeidc.com/idc/201501/19608.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

湖北数据虚拟主机

相关文章

    最新文章 | 随机文章 | 热门文章
标签列表
  • 订阅湖北数据内容更新