dongyun51582 2015-08-06 09:05
浏览 77

将Magento 1.8升级到1.9 - 致命错误:调用成员函数getReadConnection()

I am trying to upgrade our Magento 1.8.0.0 to 1.9.2.1.

I copied the db to another table so I could do a test run first. I uploaded 1.9 files to ourdomain.com/upgrade, then copied every extra installed module.

In our database I changed the base secure and unsecure url to ourdomain.com/upgrade.

Now when I go to ourdomain.com/upgrade I get this error:

Fatal error: Call to a member function getReadConnection() on a non-object in /home/domains/ourdomain.com/public_html/upgrade/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php on line 134

I have pasted this above line 134: echo get_class($this);exit; and now have this:

Mage_Core_Model_Resource_Website_Collection

Does anybody have an idea what I am doing wrong?

  • 写回答

1条回答 默认 最新

  • dongshiqin1352 2016-01-25 14:35
    关注

    I suggest that before the line $this->setConnection($this->getResource()->getReadConnection()); put
    if(!is_object($this->getResource())){ var_dump($this -> _resourceModel);die(); } to find out which resouce model generates your problem.

    gl & hf

    p.s. I think it's going to be the sales/order ;), I have the same problem with it.

    评论

报告相同问题?

悬赏问题

  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能