This is the error i receive when used dev mode and try to process a paypal payment.
[Warning] Invalid argument supplied for foreach()
POST /calendar/ball-hard-intro-camp2/details/91/register/RegisterForm?MultiFormSessionID=eebb8b687724c521b9930b43ffc19c9eb7a9d828
Line 171 in /home/content/48/5436148/html/ballharde/payment/code/PayPalPayment/PayPalPayment.php
Source
162 // 2) Main Settings
163
164 $url = self::$test_mode ? self::$test_url : self::$url;
165 $inputs['cmd'] = '_cart';
166 $inputs['upload'] = '1';
167
168 // 3) Items Informations
169
170 $cpt = 0;
171 foreach($items as $item) {
172 $inputs['item_name_' . ++$cpt] = $item->TableTitle();
173 // item_number is unnecessary
174 $inputs['amount_' . $cpt] = $item->UnitPrice();
175 $inputs['quantity_' . $cpt] = $item->Quantity;
176 }
177
Trace
* PayPalPayment->PayPalForm()
Line 131 of PayPalPayment.php
* PayPalPayment->processPayment(Array,EventRegisterForm)
Line 77 of EventRegisterPaymentStep.php
* EventRegisterPaymentStep->validateStep(Array,EventRegisterForm)
Line 82 of EventRegisterForm.php
* EventRegisterForm->finish(Array,EventRegisterForm,SS_HTTPRequest)
Line 332 of Form.php
* Form->httpSubmission(SS_HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 184 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 67 of ModelAsController.php
* ModelAsController->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
* Director::direct(/calendar/ball-hard-intro-camp2/details/91/register/RegisterForm)
Line 127 of main.php