Viewing : Warning: Call-time pass-by-reference?
Posted: Sun May 17, 2009 5:49 pm
Hi guys,
Im having some problems when trying to proceed an order using Cart MS/Shop MS.
As soon as I enter the address in the shipping address form and press continue I get this warning:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/virtual/mysite.org/public_html/modules/CartMadeSimple/action.orderaddress.php on line 52
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/virtual/mysite.org/public_html/modules/CartMadeSimple/action.orderaddress.php on line 55
I've change:
$this->orders->StoreShipInfo( &$params, &$shipto );
to
$this->orders->StoreShipInfo( $params, $shipto );
and
$this->orders->GenerateOrder( $params );
to
$this->orders->GenerateOrder( &$params );
Then the warning disapeard.
But the thing is that before when I got the warning, I could countinue with proceeding the order and I even recieved an email that an order has been made.
And when I don't get the warning anymore I can still rich the order confirmation page, but there isn't any delivery address shown or product quantity, and I don't recieve any email that there's new order.
Im using
CMSMS 1.5.3
Shop MS 0.2.1.
Cart MS 0.2.2.
PHP version 5.2.6
Any ideas on what could help?
Pls help if you know how.
Regards
Im having some problems when trying to proceed an order using Cart MS/Shop MS.
As soon as I enter the address in the shipping address form and press continue I get this warning:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/virtual/mysite.org/public_html/modules/CartMadeSimple/action.orderaddress.php on line 52
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/virtual/mysite.org/public_html/modules/CartMadeSimple/action.orderaddress.php on line 55
I've change:
$this->orders->StoreShipInfo( &$params, &$shipto );
to
$this->orders->StoreShipInfo( $params, $shipto );
and
$this->orders->GenerateOrder( $params );
to
$this->orders->GenerateOrder( &$params );
Then the warning disapeard.
But the thing is that before when I got the warning, I could countinue with proceeding the order and I even recieved an email that an order has been made.
And when I don't get the warning anymore I can still rich the order confirmation page, but there isn't any delivery address shown or product quantity, and I don't recieve any email that there's new order.
Im using
CMSMS 1.5.3
Shop MS 0.2.1.
Cart MS 0.2.2.
PHP version 5.2.6
Any ideas on what could help?
Pls help if you know how.
Regards