liqiusheng / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

[Notice] Undefined variable: php #592

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
e-commerce version: 19/10/2013

SilverStripe version: 3.1 from github

When trying to make a payment from paypal the following error occurs:

[Notice] Undefined variable: php
POST /en-us/checkout/order-confirmation/PaymentForm

Line 86 in C:\wamp\www\ecommerce\code\forms\OrderForm_Payment.php
Source

77 
78 }
79 
80 
81 
82 class OrderForm_Payment_Validator extends RequiredFields{
83 
84  function php($data){
85      $this->form->saveDataToSession();
86      return parent::validate($php);
87  }
88 
89 }
90 
91 

Trace

    OrderForm_Payment_Validator->php(Array)
    Validator.php:38
    Validator->validate()
    Form.php:1089
    Form->validate()
    Form.php:358
    Form->httpSubmission(SS_HTTPRequest)
    RequestHandler.php:288
    RequestHandler->handleAction(SS_HTTPRequest,httpSubmission)
    RequestHandler.php:200
    RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
    RequestHandler.php:222
    RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
    Controller.php:153
    Controller->handleRequest(SS_HTTPRequest,DataModel)
    ContentController.php:220
    ContentController->handleRequest(SS_HTTPRequest,DataModel)
    ContentController.php:203
    ContentController->handleRequest(SS_HTTPRequest,DataModel)
    ModelAsController.php:68
    ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
    Director.php:360
    Director::handleRequest(SS_HTTPRequest,Session,DataModel)
    Director.php:152
    Director::direct(/en-us/checkout/order-confirmation/PaymentForm,DataModel)
    main.php:189

Regards,
Jose A.

Original issue reported on code.google.com by supp...@sendasoft.com on 19 Oct 2013 at 6:47

GoogleCodeExporter commented 8 years ago
THANK YOU... FIXED!

Original comment by nfranc...@gmail.com on 27 Oct 2013 at 10:46