Only variables should be assigned by reference

A multipurpose module, plugin and component

Only variables should be assigned by reference

New postby gersh » Tue May 31, 2016 4:55 pm

Hi,

I have two errors at the frontend / website:

Strict Standards: Only variables should be assigned by reference in xyz/plugins/system/jumi/jumi.php on line 25
Strict Standards: Only variables should be assigned by reference in xyz/plugins/system/jumi/jumi.php on line 29

Joomla: 3.5.1
PHP: 5.6

I found some posts with google, but all were older and without a solution.
Is Jumi no longer maintained?

Thanke & regards!
gersh
 
Posts: 5
Joined: Sat Mar 12, 2011 12:05 am

Re: Only variables should be assigned by reference

New postby gersh » Tue May 31, 2016 6:09 pm

OK, I think I found the error.
See at:
plugins/system/jumi/jumi.php on line 25
plugins/system/jumi/jumi.php on line 29

Code: Select all
      $mainframe =& JFactory::getApplication();
...
      $plugin =& JPluginHelper::getPlugin('system', 'jumi');


delete the "&"

Code: Select all
      $mainframe = JFactory::getApplication();
...
      $plugin = JPluginHelper::getPlugin('system', 'jumi');


Backup first and test Jumi and your code after.
It works for me. The errors are gone.

Regards
gersh
 
Posts: 5
Joined: Sat Mar 12, 2011 12:05 am


Return to Jumi

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

cron