Support

Home Forums Event Espresso Premium PHP Error with PayPal Express in Sandbox Mode

PHP Error with PayPal Express in Sandbox Mode

Posted: April 27, 2017 at 9:49 am

Viewing 3 reply threads


cvadev

April 27, 2017 at 9:49 am

Hi,

We’ve spun up a fresh instance of a server and we’re using a clean install of wordpress (no themes) and EE decaf. We’re receiving an error saying that the Registration step could not be completed. Please refresh the page. The error in the console is a 500 error (no error response).

Digging into the log file on the server, I’m coming across the following error:

PHP Fatal error:  Cannot use object of type WP_Error as array in {OMMITTED}/wp-conten
t/plugins/event-espresso-decaf/payment_methods/Paypal_Express/EEG_Paypal_Express.gateway.php on line 409, referer: http://wordpress-30546-255595.cloudwaysapps.com/registration-checkout/?uts=1
493306530             

* We have increased the memory to 96M
* We have deleted all cache and caching plugins
* We are running latest version of WP
* We are running latest version of EE decaf
* We are in sandbox mode
* We are using sandbox API credentials


Tony

  • Support Staff

April 27, 2017 at 10:06 am

Hi there,

The request to PayPal is failing with a WP_Error which is causing the PayPal Express payment method to throw a fatal error when it tries to use details from the request.

If you go to:

Event Espresso -> Payment Methods -> Logs.

You’ll see various logs for your payment attempts in the logs if you check within a couple of those do you see a WP_Error logged with a response from the error?


cvadev

April 27, 2017 at 11:51 am

Yes, there was this response:

cURL error 35: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

We’re using Curl version7.26.0 libcurl/7.26.0 OpenSSL/1.0.1t


Josh

  • Support Staff

April 27, 2017 at 12:10 pm

Your server will need PHP 5.5.19+ and curl 7.29+ to have the correct SSL version kick in automatically during the handshake, where the client and server compare available ciphers to find a common protocol.

See also:

https://devblog.paypal.com/upcoming-security-changes-notice/

Viewing 3 reply threads

The support post ‘PHP Error with PayPal Express in Sandbox Mode’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso