Jump to content

Property Order->payment is empty (Fatal Error)


carlo75

Recommended Posts

Hi all,

I've a really tedious problem: when customers makes an order and pay with PayPal the transaction is done correctly, but in the BO the order isn't maden and in debug mode I receive some error like these.

 

This is the checkout express log error:

[10-Jan-2015 15:13:01 Europe/Rome] PHP Fatal error:  Uncaught exception 'PrestaShopException' with message 'Property Order->payment is empty' in /home/public_html/classes/ObjectModel.php:866
Stack trace:
#0 /home/public_html/classes/ObjectModel.php(272): ObjectModelCore->validateFields()
#1 /home/public_html/classes/order/Order.php(299): ObjectModelCore->getFields()
#2 /home/public_html/classes/ObjectModel.php(480): OrderCore->getFields()
#3 /home/public_html/classes/order/Order.php(304): ObjectModelCore->add(true, true)
#4 /home/public_html/classes/PaymentModule.php(335): OrderCore->add()
#5 /home/public_html/modules/paypal/paypal.php(1366): PaymentModuleCore->validateOrder(47, 2, 109.2, '', 'Payment accepte...', Array, 2, false, '178561e9f5d9c49...', Object(Shop))
#6 /home/public_html/modules/paypal/express_checkout/payment.php(290): PayPal->validateOrder(47, 2, 109.2, '', 'Payment accepte...', Array, 2, false, '178561e9f5d9c49...', Object(Shop))
#7 /home/public_html/modules/payp in /home/public_html/classes/ObjectModel.php on line 866

I'm using PayPal EU module, and I see some little bug or misconfiguration, which in my local test site they doesn't happens. (see snapshot 1 & 2 & 4)

 

If I try to made manually an order, in the summary I can't select the payment method as PayPal, because the selector is empty (for testing I've enabled only PayPal method). For better understanding, I've made some little screenshot to show the problems. (snapshot 3)

 

I've already uninstalled, deleted, reinstalled and enabled a few thousand times, but the problems reamain. I think some problem on DB but I can't figure out where...

 

Can anyone help me?

 

Thanks in advance,

best regards.

post-425252-0-52296200-1421350637_thumb.jpg

post-425252-0-42957700-1421350638_thumb.jpg

post-425252-0-55987400-1421350639_thumb.jpg

post-425252-0-78704600-1421392356_thumb.jpg

Edited by carlo75 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

Have exactly the same Problem.

My History:

Have started new Version from PS 1.5 to PS 1.6

After all the work have configurated all Modules incl. PayPal.

The Problem i get Payment to PayPal but see nothing in the BO. No Order, can´t make Manuel Order by selected PayPal.

Also exactly the same Problem like by Carlo75.

 

I can not understand, why the PayPal Module does  not have the Translation, that it need for correct work.

 

Now will try to translate every fields in PayPal module and give here my response.

 

UPDATE:

Have translated all fields of PayPal Modul.

Don´t help.

 

Realy hove no idea how to fix this problem

 

UPDATE 2:

Problem SOLVED

https://github.com/PrestaShop/PrestaShop/commit/9e27137fc1f1d57d4da9fc3fc1a63bba23c9a422

Edited by valo (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...