Jump to content

Filipa-HeyDigital

Recommended Posts

Hello, 

I'm testing paypal module and in express checkout give me this error:

Fatal error: Uncaught exception 'PrestaShopException' with message 'Property CustomerThread->name is empty' in /home/NOMEDOPROJETO/public_html/classes/ObjectModel.php:881 Stack trace: #0 /home/NOMEDOPROJETO/public_html/classes/ObjectModel.php(245): ObjectModelCore->validateFields() #1 /home/NOMEDOPROJETO/public_html/classes/ObjectModel.php(469): ObjectModelCore->getFields() #2 /home/NOMEDOPROJETO/public_html/classes/PaymentModule.php(642): ObjectModelCore->add() #3 /home/NOMEDOPROJETO/public_html/modules/paypal/paypal.php(2428): PaymentModuleCore->validateOrder(44, 11, 58, 'PayPal', 'Pending payment...', Array, 1, false, '6dc194b063ec5fe...', Object(Shop)) #4 /home/NOMEDOPROJETO/public_html/modules/paypal/express_checkout/payment.php(363): PayPal->validateOrder(44, 11, 58, 'PayPal', 'Pending payment...', Array, 1, false, '6dc194b063ec5fe...', Object(Shop)) #5 /home/NOMEDOPROJETO/public_html/modules/paypal/express_checkout/payment.php(380): validateOrder(Object(Customer), Object(Cart), Object(PaypalExpressCheckout)) in /home/NOMEDOPROJETO/public_html/classes/ObjectModel.php on line 881

Can u help me please?

Link to comment
Share on other sites

Hello,

 

It seems like the method validateOrder([...]) creates a contact thread when a message is specified in the parameters, as the module is doing:

modules/paypal/paypal.php(2428): PaymentModuleCore->validateOrder(44, 11, 58, 'PayPal', 'Pending payment...', Array, 1, false, '6dc194b063ec5fe...', Object(Shop))

 

However, because "name" is not a default property of the CustomerThread class, the class method is trying to add the thread to the database incorrectly.

 

Make sure that you have no third-party modules changing the behavior of your store.

 

 

Best regards,

Web Development VIZO.

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

  • 1 year later...

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...