Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Ariquiz Error
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: Ariquiz Error
#54931
Ariquiz Error 8 Years, 10 Months ago Karma: 0
Hello, some months back I purchased Ariquiz. I've been working on the performance of my joomla 3.4.1 installation when I received this error message:

Strict Standards: Only variables should be assigned by reference

/public_html/plugins/system/ariquizreloader/ariquizreloader.php on line 28


I took a look at it and here's what it said on line 28

Code:

$document =& JFactory::getDocument();


Which is part of this block of code:

Code:

class plgSystemAriquizreloader extends JPlugin

function plgSystemAriquizreloader(&$subject, $config)
{
parent::__construct($subject, $config); 
}

function onAfterDispatch()
{
$mainframe = JFactory::getApplication();

$document =& JFactory::getDocument();
$doctype = $document->getType();

if ($mainframe->isAdmin() || $doctype !== 'html') return ;

$option = JRequest::getCmd('option');
$task = JRequest::getString('view');

if ($option != 'com_ariquiz' || $task != 'question') 
return ;

$version = new JVersion();
$isJ16 = version_compare($version->getShortVersion(), '1.6.0', '>=');

$document->addScript('plugins/system/' . ($isJ16 ? 'ariquizreloader/' : '') . 'ariquizreloader/js/init.min.js');
}
}



How do I correct this error so it goes away?


Thanks in advance for your assistance!
The administrator has disabled public write access.
 
#54932
Re:Ariquiz Error 8 Years, 10 Months ago Karma: 747
Hello,

Replace the following code:

Code:


$document =& JFactory::getDocument();



with the following one:

Code:


$document = JFactory::getDocument();



Regards,
ARI Soft
The administrator has disabled public write access.
 
#54933
Re:Ariquiz Error 8 Years, 10 Months ago Karma: 0
Thank you for the quick response!!
The administrator has disabled public write access.
 
Go to topPage: 1