1999 Posts in 530 Topics by 433 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1578 Views |
-
DPS Checkout error - Undefined index: value

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/OrderFormLine 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
SourceWarning: Invalid argument supplied for foreach() in /home/serendip/public_html/sapphire/dev/DebugView.php on line 135
-
Re: DPS Checkout error - Undefined index: value

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.
-
Re: DPS Checkout error - Undefined index: value

29 June 2009 at 10:01am
It works!?!
Kind of conducting a survey ... http://silverstripe.org/e-commerce-module-forum/show/263539#post263539
| 1578 Views | ||
|
Page:
1
|
Go to Top |


