J3 Issue ?
avatar acs-ferreira
acs-ferreira
14 Aug 2017

When cache (redis) is activated i have these warnings at the frontend and the backend, then it disappear after a few minutes of browsing without change any setting

Warning: strstr() expects parameter 1 to be string, object given in
/public/libraries/joomla/cache/controller/callback.php on line 63

Warning: strstr() expects parameter 1 to be string, object given in
/public/libraries/joomla/cache/controller/callback.php on line 69

Warning: call_user_func_array() expects parameter 1 to be a valid callback,
class 'JCache' does not have a method 'contains' in
/public/libraries/joomla/cache/controller.php on line 69

Joomla Error Reporting is None.

  • Joomla 3.7.5
  • PHP 7.0.22
  • Redis 4.0.1
avatar acs-ferreira acs-ferreira - open - 14 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - change - 14 Aug 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Aug 2017
avatar acs-ferreira acs-ferreira - change - 14 Aug 2017
The description was changed
avatar acs-ferreira acs-ferreira - edited - 14 Aug 2017
avatar acs-ferreira acs-ferreira - change - 14 Aug 2017
The description was changed
avatar acs-ferreira acs-ferreira - edited - 14 Aug 2017
avatar acs-ferreira acs-ferreira - change - 14 Aug 2017
The description was changed
avatar acs-ferreira acs-ferreira - edited - 14 Aug 2017
avatar acs-ferreira acs-ferreira - change - 14 Aug 2017
The description was changed
avatar acs-ferreira acs-ferreira - edited - 14 Aug 2017
avatar acs-ferreira acs-ferreira - change - 14 Aug 2017
The description was changed
avatar acs-ferreira acs-ferreira - edited - 14 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Aug 2017
Category com_cache
avatar zero-24
zero-24 - comment - 15 Aug 2017

@mbabker can you take a look here as you was able in the past to set up a redis server. By reading the code it looks like $callback is a object but not callable so maybe we need to do a extra is_object check? But i also don't understand where this is not callable object comming from.

avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Aug 2017
Status New Discussion
avatar acs-ferreira acs-ferreira - change - 23 Aug 2017
The description was changed
avatar acs-ferreira acs-ferreira - edited - 23 Aug 2017
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar mbabker mbabker - change - 24 Jul 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-07-24 16:23:30
Closed_By mbabker
avatar mbabker mbabker - close - 24 Jul 2018
avatar mbabker
mbabker - comment - 24 Jul 2018

Warning: call_user_func_array() expects parameter 1 to be a valid callback,
class 'JCache' does not have a method 'contains' in
/public/libraries/joomla/cache/controller.php on line 69

That part is the key here. Since 3.7.0 the cache API has had said contains method. So it seems like when this was reported there was a bad upgrade, or even worse potentially something overloading the cache API.

Add a Comment

Login with GitHub to post a comment