PayPal module returning Server ERROR 500

Avatar
  • Answered
Once I or my customers have added something to their shopping cart and then select the PayPal payment process, logging into PayPal and then click on the Continue link the Server ERROR 500 is returned. I turned on PS_MODE_DEV setting it to true within the config/defines.inc.php file and see the following error details on the page...
Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2 in /home/ehyeh35/public_html/modules/paypalusa/controllers/front/expresscheckout.php on line 184
[PrestaShopException]

Property Address->firstname is not valid
at line 846 in file classes/ObjectModel.php

840.
841. $message = $this->validateField($field, $this->$field);
842. if ($message !== true)
843. {
844. if ($die)
845. throw new PrestaShopException($message);
846. return $error_return ? $message : false;
847. }
848. }
849.
850. return true;

ObjectModelCore->validateFields - [line 260 - classes/ObjectModel.php]
ObjectModelCore->getFields - [line 464 - classes/ObjectModel.php]
ObjectModelCore->add - [line 170 - classes/Address.php] - [2 Arguments]
AddressCore->add - [line 425 - classes/ObjectModel.php] - [2 Arguments]
ObjectModelCore->save - [line 188 - modules/paypalusa/controllers/front/expresscheckout.php]
PayPalusaExpressCheckoutModuleFrontController->_expressCheckout - [line 48 - modules/paypalusa/controllers/front/expresscheckout.php]
PayPalusaExpressCheckoutModuleFrontController->initContent - [line 180 - classes/controller/Controller.php]
ControllerCore->run - [line 373 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]
Avatar
anonymous
Hello Acnsgroup,

I apologize that we were not able to replicate the issue but I hope it is now resolved.

Please let us know if you have any other questions.

Best Regards,
TJ Edens
Avatar
anonymous
Hello acnsgroup,

When I went through the order process, I clicked continue which brought me back to your website with my shipping and billing address added to your website. I was not able to replicate any 500 error.

Please let us know if you have any other questions.

Best Regards,
TJ Edens
Avatar
johnpaulb-imhs1

Hello acnsgroup,

Thank you for contacting. There seems to be several ongoing issues with PrestaShop, and the Paypal Express module. I found another older Unresolved ticket, where they are discussing the error you are experiencing. Monitoring that post for updates, will keep you informed when the issue is corrected.

I followed the steps ("added something to their shopping cart and then select the PayPal payment process, logging into PayPal and then click on the Continue link") exactly, and do not see the error.

Here is a screenshot:

We are happy to help troubleshoot further, but will need some additional information.

Are you still experiencing this error?

Have you tested with a different Paypal account?

If you have any further questions, feel free to post them below.

Best Regards,

John-Paul

Avatar
JeffMa
After researching, it appears that the PayPal module has a bug in it in which if there are any symbols within the name on a PayPal business account, it will return this error. Unfortunately, the bug does not appear to be fixed yet. Further information on this issue may be found within this PrestaShop bug report. My recommendation would be to simply avoid this issue for now by either ensuring that an account with symbols is not used, or using another payment gateway module in the meantime. I also recommend updating the ticket referenced above with your experiences as this may help them resolve the issue faster. Best regards, JeffMa