我把我的magento项目放在Linux服务器上。首先显示错误日志消息,但是缺少文件夹var。然后,我创建了var文件夹,并赋予它777权限,并与缓存,报告,会话相同。在报告文件夹的错误文件中,我收到以下消息:
a:5:{i:0;s:65:"dbModel read resource does not implement Zend_Db_Adapter_Abstract";i:1;s:3543:"#0 /home/myfolder/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Varien_Data_Collection_Db->setConnection(false)
#1 /public_html/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(MKleine_LanguageRoutes_Model_Resource_Languageroute))
#2 /public_html/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('mk_languagerout...', Object(MKleine_LanguageRoutes_Model_Resource_Languageroute))
#3 /public_html/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('mk_languagerout...', Object(MKleine_LanguageRoutes_Model_Resource_Languageroute))
#4 /public_html/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('mk_languagerout...', Object(MKleine_LanguageRoutes_Model_Resource_Languageroute))
#5 /public_html/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#6 /public_html/app/code/community/MKleine/LanguageRoutes/Model/Translation.php(150): Mage_Core_Model_Abstract->getCollection()
#7 /public_html/app/code/community/MKleine/LanguageRoutes/Model/Translation.php(129): MKleine_LanguageRoutes_Model_Translation->getRouteCollection(1)
#8 /public_html/app/code/community/MKleine/LanguageRoutes/Model/Translation.php(91): MKleine_LanguageRoutes_Model_Translation->translateToFront('install', 1)
#9 /public_html/app/code/community/MKleine/LanguageRoutes/Model/Core/Url.php(75): MKleine_LanguageRoutes_Model_Translation->translateRouteToFront('install')
#10 /public_html/app/code/core/Mage/Core/Model/Url.php(398): MKleine_LanguageRoutes_Model_Core_Url->getRouteFrontName()
#11 /public_html/app/code/core/Mage/Core/Model/Url.php(763): Mage_Core_Model_Url->getBaseUrl()
#12 /public_html/app/code/core/Mage/Core/Model/Url.php(995): Mage_Core_Model_Url->getRouteUrl('install', Array)
#13 /public_html/app/Mage.php(394): Mage_Core_Model_Url->getUrl('install', Array)
#14 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(711): Mage::getUrl('install', Array)
#15 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(689): Mage_Core_Controller_Varien_Action->setRedirectWithCookieCheck('install', Array)
#16 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(474): Mage_Core_Controller_Varien_Action->_redirect('install')
#17 /public_html/app/code/core/Mage/Core/Controller/Front/Action.php(69): Mage_Core_Controller_Varien_Action->preDispatch()
#18 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Core_Controller_Front_Action->preDispatch()
#19 /public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#20 /public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#21 /public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#22 /public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#23 /public_html/index.php(83): Mage::run('', 'store')
#24 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
那么什么会引起这个问题呢?为什么呢?而我解决了吗?
1
也许这个问题的解决方案可能会有所帮助:stackoverflow.com/questions/24528617/…–
—
Michael
请检查您的
—
Adarsh Khatri
ect/local.xml
文件与数据库的正确连接。您是否安装了任何扩展程序?还是新鲜的magento。是哪个版本?
这样数据库连接就可以了。我正在使用1.9.2,并且安装了一些扩展
—
Attila Naghi
这可能是在Windows机器上进行的吗?
—
戴维·曼纳斯
实际上,@ kaska帖子帮助我按照该帖子中的说明进行操作,并设法解决了该问题。Thx再次
—
Attila Naghi 2015年