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

DPS Checkout error - Undefined index: value


Go to End


3 Posts   2738 Views

Avatar
keeny

Community Member, 48 Posts

1 April 2009 at 10:48am

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

Avatar
keeny

Community Member, 48 Posts

1 April 2009 at 12:21pm

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.

Avatar
kcd

Community Member, 54 Posts

29 June 2009 at 10:01am