请各位大神帮忙看看,小弟是新手实在不知道怎么解决了,PHP版本降低成php5.3是正常的,5.4就提示如下错误:
代码如下:
谢谢各位2016-07-27 15:31:33点赞只看楼主引用举报 楼主
![](https://g.csdnimg.cn/static/user-reg-year/2x/17.png)
![](https://g.csdnimg.cn/static/user-reg-year/2x/17.png)
![](https://bbs.csdn.net/dist/images/bbs12.png)
![](https://bbs.csdn.net/dist/images/bbs12.png)
![Blank](https://csdnimg.cn/medal/qiandao5@240.png)
![Blank](https://csdnimg.cn/medal/qiandao5@240.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/mingrenmiddle.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/mingrenmiddle.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/zhuangyuanmiddle.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/zhuangyuanmiddle.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/jinshimiddle.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/jinshimiddle.png)
$this->db 不是对象
不是 php 版本问题,而是 php 配置问题
@$this->db->prefix = …..
即可
贴代码时,请不要贴图2016-07-27 16:07:59#1得分 40
![](https://g.csdnimg.cn/static/user-reg-year/2x/6.png)
![](https://g.csdnimg.cn/static/user-reg-year/2x/6.png)
![](https://g.csdnimg.cn/static/user-reg-year/2x/6.png)
![](https://bbs.csdn.net/dist/images/bbs5.png)
![](https://bbs.csdn.net/dist/images/bbs5.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/lanhuamiddle.png)
![Blank](https://csdnimg.cn/jifen/images/xunzhang/xunzhang/lanhuamiddle.png)
你可以先实例化对象。然后再操作试试。2016-07-27 16:17:58#2得分 0
![](https://g.csdnimg.cn/static/user-reg-year/2x/6.png)
![](https://g.csdnimg.cn/static/user-reg-year/2x/6.png)
![](https://g.csdnimg.cn/static/user-reg-year/2x/6.png)
![](https://bbs.csdn.net/dist/images/bbs1.png)
![](https://bbs.csdn.net/dist/images/bbs1.png)
引用 1 楼 xuzuning 的回复:
$this->db 不是对象
不是 php 版本问题,而是 php 配置问题
@$this->db->prefix = …..
即可贴代码时,请不要贴图
引用 1 楼 xuzuning 的回复:
$this->db 不是对象
不是 php 版本问题,而是 php 配置问题
@$this->db->prefix = …..
即可贴代码时,请不要贴图
感谢版主,完美解决,下回注意
未经允许不得转载:萌萌guo angline - Apprentissage » wordpress版本问题错误Warning: Creating default object from empty value in