I'm helping a client troubleshoot some issues that have, so far as I can tell, arisen after their update to PHP 5.5 (Joomla is currently 2.5.20). The errors are getting thrown from some lines that are attributed to the Joomla CMS (though I don't think that's the reason). Either way, here are few code snippets and their respective errors that I need help with:
$app =& JFactory::getApplication();
PHP Strict Standards: Only variables should be assigned by reference...
public function getModel($name = 'Submission', $prefix = 'AwardAdminModel')
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
return $model;
}
getModel() should be compatible with JController::getModel($name = '', $prefix = '', $config = Array)
function display($cachable = false)
{
JRequest::setVar('view', JRequest::getCmd('view', 'Submissions'));
parent::display($cachable);
}
display() should be compatible with JController::display($cachable = false, $urlparams = false)
Now I've never used ampersand with my PHP before but courtesy of the PHP manual I have some inclination as to what it does but I'm not sure why it's throwing a fit - I'm sure I could just remove it and be safe.
The getModel method is labeled as a proxy in the signature and sure enough, it calls it proper with 3 arguments within itself so I'm not sure why that's a problem.
Any helpful tips or solutions would be much appreciated.
Thanks.