Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Call-time pass-by-reference has been deprecated

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1417 Views
  • Bambii7
    Avatar
    Community Member
    254 Posts

    Call-time pass-by-reference has been deprecated Link to this post

    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?

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Call-time pass-by-reference has been deprecated Link to this post

    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.

    1417 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.