Cannot call overloaded function for non-object when APC is enabled
I'm getting this error when APC is enabled: Fatal error: Cannot call overloaded function for non-object in /www/assets/third_party/low_variables/base.low_variables.php on line 164
Setup is: nginx + php-fpm 5.4.10
EE: 2.5.3
Low Variables: 2.3.5
Replies
Low 7 Jun 2013 10:27
I've Googled a bit, and it looks like this is not a Low Variables problem per se, but a server setup, most likely APC.
The function called is the native load->add_package_path(), which shouldn't give any problems in a regular server environment.
Now, I'm not too familiar with APC, but can you tweak settings and see if that helps? I also saw some issues that had to do with xdebug. You running that?
Otherwise, there isn't a lot I can do, really. I'm not doing anything out of the ordinary, and I'm willing to bet you'd get the same error with another script if you uninstall LV and install other add-ons.
sjelfull 7 Jun 2013 12:18
I agree that it seemed like a APC problem, I just wanted to check if you had run into this before.
I found this thread related to Smarty, and it suggests adding these lines:
apc.stat=1
apc.stat_ctime=1
Seems like that fixed the problem!
Low 7 Jun 2013 12:19
Good to know! :)
Alex 26 Jun 2013 13:16
For it also was APC problem. The website I was developing used more resources, then APC was able to cache. Then these strange errors started to happen.