Topic: Joomla: Warning: Parameter 3 to showItem() expected to be a reference

Warning: Parameter 3 to showItem() expected to be a reference

Modify the following things in the /includes/Cache/Lite/Function.php:

1.
from: $result = call_user_func_array(array($class, $method), $arguments);
to:$result = call_user_func_array(array($class, $method), &$arguments);

2.
from: $result = call_user_func_array(array($$object_123456789, $method), $arguments);
to: $result = call_user_func_array(array($$object_123456789, $method), &$arguments);

3.
from: $result = call_user_func_array($target, $arguments);
to: $result = call_user_func_array($target, &$arguments);


The difference is not that big, it's just a matter of adding a ampersand before the arguments parameter, &$arguments, in all cases for php to realize that things are being passed by reference.


forum.joomla.org/viewtopic.php?f … p;t=530296