?
avatar jjnxpct
jjnxpct
18 Feb 2015

Steps to reproduce the issue

  • Set site error reporting to 'maximum'.
  • Site configuration cache to 'On - conservative'
  • Cache plugin off

Expected result

No errors

Actual result

Error message appears:

Strict Standards: Declaration of JCacheControllerView::get() should be compatible with JCacheController::get($id, $group = NULL) in .../public_html/nieuw/libraries/loader.php on line 354

System information (as much as possible)

Joomla 2.5.28 and Joomla 3.3.6 (after upgrade)
Apache/2
cgi-fcgi
MySQL 5.5.41
PHP 5.4.37

Additional comments

Turning the caching off makes the message disappear.

avatar jjnxpct jjnxpct - open - 18 Feb 2015
avatar Bakual
Bakual - comment - 18 Feb 2015

I can't make much sense out of the error message because it looks like from an old 2.5.x installation and not from 3.3.6.

However I can confirm there is an issue in our method declarations:
JCacheControllerView::get($view, $method = 'display', $id = false, $wrkarounds = true)
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/controller/view.php#L31
vs
JCacheController::get($id, $group = null)
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/controller.php#L177

The same issue also exists for
JCacheControllerCallback::get($callback, $args = array(), $id = false, $wrkarounds = false, $woptions = array())
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/controller/callback.php#L57

My guess is that the only way to solve this is to deprecate JCacheController::get() and add it only to the respective child class instead.

avatar jjnxpct
jjnxpct - comment - 18 Feb 2015

Hi! Sorry, I think I made a mistake. This error shows up only on the 2.5 site and no longer after an upgrade of that site to 3.3.6. Maybe there was some cache left in the browser that confused me ;-)

avatar jjnxpct jjnxpct - change - 18 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-18 10:14:56
avatar jjnxpct jjnxpct - close - 18 Feb 2015
avatar zero-24 zero-24 - close - 18 Feb 2015
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment