dbModel读取资源未实现Zend_Db_Adapter_Abstract
我正面临找不到任何解决方案的情况.在安装新的扩展程序之前,我的网站运行良好.安装此扩展程序后,我的网站和管理面板无法正常工作.其实我已经安装了较低的版本扩展名,因为我没有注意到版本并安装了.
i am facing a situation where i can't find any solution. My website was working fine till i installed a new extension. After installing this extension my website and admin panel is not working. Actually i have installed lower version extension because i didn't noticed version and installed.
我正在获取此堆栈跟踪:-
I am getting this stack trace :-
dbModel read resource does not implement Zend_Db_Adapter_Abstract
Trace:
#0 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Varien_Data_Collection_Db->setConnection(false)
#1 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#2 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#3 /home/krishangrover/public_html/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#4 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#5 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#6 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#7 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#8 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#9 /home/krishangrover/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /home/krishangrover/public_html/index.php(87): Mage::run('', 'store')
#11 {main}
我已完成所有解决方案,但没有人在工作.我已经搜索了谷歌,也搜索了stackoverflow.但是没有解决方案.
I have done all the solution but no one is working. i have searched over google and searched on stackoverflow also. But no solution is working.
如果您确定扩展程序造成了问题.您需要禁用扩展程序,然后重试.
If you are sure the extension created the problem. You need to disable the extension and try again.
为此,您需要按照以下步骤操作
For this you need to follow these steps
- 转到Magento的根目录
- 打开目录
app/etc/modules/
. - 您可以在其中找到名称为
Ksv_Attributemanager.xml
的文件.打开该文件. - 在这里您可以看到类似
<active>true</active>
的代码.将false
放在此处. - 清除缓存并再次加载页面.
- Go to the root directory of Magento
- Open the directory
app/etc/modules/
. - You can find a file with a name
Ksv_Attributemanager.xml
there. Open that file. - There you can see a code like this
<active>true</active>
. Putfalse
there. - Clear the cache and load the page again.
让我知道它是否有区别.
Let me know whether it makes any difference.
如果找不到这样的文件,则该扩展名将贡献那些文件中的任何文件.您需要做的是,打开所有不以Mage
开头的文件,并检查此代码.
If you didn't find such file, then any one in those file is contributed by that extension. What you need to do is, open all files which does not start with Mage
, and check for this code.
<config>
<modules>
<Ksv_Attributemanager>
<active>true</active>
<codePool>community</codePool>
</Ksv_Attributemanager>
</modules>
</config>
与此节点一起可能存在一个depend
节点.如果您在文件的任何一个中找到这样的代码,则将false改为true
,然后重试. (如果存在此代码,则表示该文件是该自定义扩展名的一部分)
There may be a depend
node present along with this one. If you find such code in any one of the file, put false instead true
and try again. (If this code present, that means that file is a part of that custom extension)