Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Call-time pass-by-reference has been deprecated


Go to End


2 Posts   2105 Views

Avatar
Bambii7

Community Member, 254 Posts

11 July 2010 at 10:48pm

Hey all sorry to bother.
Getting a strange error I haven't encountered before on ss, just testing out the latest combo of ecommerce and paypal, when going to place the order with paypal I get

XML Parsing Error: junk after document element
Location: http://127.0.0.1/ss/testpaypal/checkout/OrderForm
Line Number 2, Column 1:

<b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>C:\wamp\www\ss\testpaypal\ecommerce\code\forms\OrderForm.php</b>;

any ideas?

Avatar
Bambii7

Community Member, 254 Posts

11 July 2010 at 11:00pm

OK disabling javascript while going through the checkout process revealed it was on line 101 of orderform.php

$this->extend('updateFields',&$fields);

Removing the & symbol removes the xml parse error, which is strange because it doesnt really seem like a xml error.