Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Dropdown Shopping Cart(SKU# FLEX-00001)

TOPIC: Assigning the return value of new by reference is

Assigning the return value of new by reference is 11 years 2 months ago #2170

We have suddel;y started getting the following errors on one of our websites...

Assigning the return value of new by reference is deprecated in /public_html/modules/mod_virtuemart_flexible_dropdown_cart/mod_virtuemart_flexible_dropdown_cart.php on line 86

Deprecated: Assigning the return value of new by reference is deprecated in /public_html/modules/mod_virtuemart_flexible_dropdown_cart/mod_virtuemart_flexible_dropdown_cart.php on line 89

Certainly seems to be an issue with your extension, any ideas what is causing this ????

Running on latest version of Joomla 1.5 (client doesnt want to update to 2.5 due to all custom work so we secured 1.5)
The administrator has disabled public write access.

Assigning the return value of new by reference is 11 years 2 months ago #2173

Hi,

It has to do with PHP5.3

The fix is extremely easy.
Open this PHP file:
ROOT/modules/mod_virtuemart_flexible_dropdown_cart/mod_virtuemart_flexible_dropdown_cart.php

And look at the 86th:
Find this line:
$ps_product =& new ps_product;

change it with this:
$ps_product = new ps_product;

then look at the 89th line,
find this line:
$ps_checkout =& new ps_checkout;

and change it with this:
$ps_checkout = new ps_checkout;


the problem will be gone
The administrator has disabled public write access.
Time to create page: 0.161 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo