PHP的致命错误:无法调用重载函数的非对象 [英] PHP Fatal error: Cannot call overloaded function for non-object

查看:243
本文介绍了PHP的致命错误:无法调用重载函数的非对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了很多这样的错误对我的Apache的error_log。

I've been seeing a lot of this errors on my apache error_log.

我的设置:


  • 我必须使用相同的PHP助手库(位于/usr/share/myphphelpers/helpers.php 15个不同的网站

  • 在每个网站我通过打电话的require_once文件helpers.php('的/ usr /共享/ myphphelpers / helpers.php')

  • 在一个特定的功能,会出现此错误 - 所有网站调用这个函数(该事件是用户触发的)

难道这是因为所有的网站使用相同的资源文件/功能?我该怎么办?

Could this be because all websites use the same resource file/function? What can I do?

感谢您提前

推荐答案

虽然我还不确定哪一部分code被触发这个错误,我知道它是由服务器超载造成的

Although I'm not yet sure of what portion of code was triggering this error, I know it was caused by server overload.

我有一个负载均衡下运行两个​​的m1.small亚马逊实例,但他们无法处理所有流量。添加另一个实例解决了这个问题。

I had two m1.small Amazon instances running under a Load Balancer but they could not handle all the traffic. Adding another instance solved the problem.

这篇关于PHP的致命错误:无法调用重载函数的非对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆