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
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?
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.