Jump to:

2081 Posts in 1001 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » DPS Checkout error - Undefined index: value

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: 1757 Views
  • keeny
    Avatar
    Community Member
    48 Posts

    DPS Checkout error - Undefined index: value Link to this post

    Hi All,

    I've set up ecommerce to use DPS payments. All is well until I get to the Checkout page. When I click Place order and make payment... I get the following error...

    Any ideas?

    Many thanks!

    [Notice] Undefined index: value
    POST /~serendip/checkout/OrderForm

    Line 1 in /home/serendip/public_html/ecommerce/code/payments/DPSPayment.php(198) : eval()'d code

    Warning: file(/home/serendip/public_html/ecommerce/code/payments/DPSPayment.php(198) : eval()'d code) [function.file]: failed to open stream: No such file or directory in /home/serendip/public_html/sapphire/dev/Debug.php on line 315

    Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/serendip/public_html/sapphire/dev/Debug.php on line 318

    Warning: array_slice() [function.array-slice]: The first argument should be an array in /home/serendip/public_html/sapphire/dev/Debug.php on line 322
    Source

    Warning: Invalid argument supplied for foreach() in /home/serendip/public_html/sapphire/dev/DebugView.php on line 135

  • keeny
    Avatar
    Community Member
    48 Posts

    Re: DPS Checkout error - Undefined index: value Link to this post

    This is now solved at http://open.silverstripe.com/ticket/3815

    ------

    On the Checkout page, when I click 'Place order and make payment' I get the following error...

    [Notice] Undefined index: value POST /~serendip/checkout/OrderForm

    In the repsonse received from DPS if an xml element has no value, e.g. <CardName></CardName>

    In this case, the xml $values array will simply not have the key 'value', rather than a key 'value=null' or similar.

    To fix if just added array_key_exists() to line where the error occurs.

  • kcd
    Avatar
    Community Member
    54 Posts
    1757 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.