APC caching warning


We have an installation of 2.4.6. We have set the caching method to apc in the config file. However there are lots of warnings in the log file complaining about get_class input parameter of get_class in getCache function. I checked sometimes it passes an abject which works fine but sometimes it’s an array which complains.

built-in php function of apc_fetch and apc_store are used. I don’t know if it is a system bug or not.

This issue used to be in older version too.
I have cleared the cach and tested again. The same warnings happen.

Please advise.

ojs2 has produced an error\n Message: WARNING: get_class() expects parameter 1 to be object, array given\n In file: /www/dev-demo1.library.qut.edu.au/htdocs/webroot/lib/pkp/classes/cache/APCCache.inc.php\n At line: 61\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.3\n Apache Version: Apache\n DB Driver: mysql\n DB server version: 5.0.95

Hi @salehig,

The object_cache feature isn’t well maintained, so I would suggest leaving it set to none. OJS performs well enough without it.

Alec Smecher
Public Knowledge Project Team