一个错误!尝试单击产品以查看其详细信息时 - MAGENTO ONLINE STORE - cache_dir必须是目录Trace:

时间:2012-01-02 17:58:56

标签: php magento csv magmi

说我正在寻找一辆车,我进入“汽车”类别,然后我看到别克'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

PLS帮助我了! TNX高级!

2 个答案:

答案 0 :(得分:0)

Magento论坛已经回答了这个问题:http://www.magentocommerce.com/boards/viewthread/17358/

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

答案 1 :(得分:0)

Magento查看了一些 $ _ ENV $ _ SERVER 变量,以找到合理的可写目录。它查找 TMPDIR TEMP TMP , 8windir *和 SystemRoot 变量找到一个。 (你可以在Zend_Cache_Backend::getTmpDir中看到它。)

所以有一些步骤需要检查......

  1. 在phpinfo验证您的apache / nginx用户,并检查此用户是否拥有var / cache目录的权限;
  2. 如果您启用了apache和mod_env,则可以通过在.htaccess中添加以下行来设置您的tmp目录:
  3.   

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

    3。如果你使用nginx,你可以尝试添加这样的参数:

      

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