0

假设我正在寻找一辆车,我进入“汽车”类别,然后我看到一辆别克 '97,当单击它以获取更多详细信息和购买选项时,在某些产品上它工作得很好,但在其他产品上...:

处理您的请求时出错

cache_dir must be a directory

Trace:
#0 /home/oal4wi/domains/mysite.com/public_html/lib/Zend/Cache/Backend/File.php(154): Zend_Cache::throwException(\\\'cache_dir must ...\\\')
#1 /home/oal4wi/domains/mysite.com/public_html/lib/Zend/Cache/Backend/File.php(121): Zend_Cache_Backend_File->setCacheDir(\\\'tmp\\\')
#2 /home/oal4wi/domains/mysite.com/public_html/lib/Zend/Cache.php(153): Zend_Cache_Backend_File->__construct(Array)
#3 /home/oal4wi/domains/mysite.com/public_html/lib/Zend/Cache.php(94): Zend_Cache::_makeBackend(\\\'File\\\', Array, false, false)
#4 /home/oal4wi/domains/mysite.com/public_html/lib/Zend/Locale/Data.php(940): Zend_Cache::factory(\\\'Core\\\', \\\'File\\\', Array, Array)
#5 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Model/Locale.php(633): Zend_Locale_Data::getContent(\\\'en_US\\\', \\\'currencynumber\\\')
#6 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Catalog/Block/Product/View.php(158): Mage_Core_Model_Locale->getJsPriceFormat()
#7 /home/oal4wi/domains/mysite.com/public_html/app/design/frontend/default/MAG080116/template/catalog/product/view.phtml(83): Mage_Catalog_Block_Product_View->getJsonConfig()
#8 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include(\\\'/home/oal4wi/do...\\\')
#9 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(\\\'frontend/defaul...\\\')
#10 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#11 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#12 /home/oal4wi/domains/ymysite.com/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#14 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#15 /home/oal4wi/domains/mysite/public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(\\\'content\\\', true)
#16 /home/oal4wi/domains/mysite.com/public_html/app/design/frontend/default/MAG080116/template/page/2columns-right.phtml(59): Mage_Core_Block_Abstract->getChildHtml(\\\'content\\\')
#17 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include(\\\'/home/oal4wi/do...\\\')
#18 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(\\\'frontend/defaul...\\\')
#19 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#21 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Model/Layout.php(529): Mage_Core_Block_Abstract->toHtml()
#22 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(391): Mage_Core_Model_Layout->getOutput()
#23 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Cms/Helper/Page.php(132): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), \\\'no-route\\\')
#25 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), \\\'no-route\\\')
#26 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Cms_IndexController->noRouteAction()
#27 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(\\\'noRoute\\\')
#28 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#29 /home/oal4wi/domains/mysite.com/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#30 /home/oal4wi/domains/mysite.com/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#31 /home/oal4wi/domains/electronics.mysite.com/public_html/index.php(80): Mage::run(\\\'electronics\\\', \\\'website\\\')
#32 {main}

Error log record number: 372472694932

请帮帮我!TNX 进阶!

4

2 回答 2

0

这已在 Magento 论坛上得到解答:http: //www.magentocommerce.com/boards/viewthread/17358/

“...在 magento 安装的根目录中创建一个 tmp 目录...”

于 2012-01-02T18:02:34.530 回答
0

Magento 查看一些$_ENV$_SERVER变量来找到一个合理的可写目录。它查找TMPDIRTEMPTMP、 8windir* 和SystemRoot变量以找到一个。(您可以在Zend_Cache_Backend::getTmpDir中看到它)。

所以有一些步骤可以检查...

  1. 在 phpinfo 验证您的 apache/nginx 用户,并检查该用户是否有权访问 var/cache 目录;
  2. 如果您使用 apache 和 mod_env 启用,您可以通过在 .htaccess 中添加以下行来手动设置您的 tmp 目录:

SetEnv TMP /path/to/other/tmp/dir

3. 如果你使用 nginx,你可以尝试像这样添加一个参数:

fastcgi_param TMP /path/to/other/tmp/dir

于 2012-01-25T11:22:05.217 回答