Support

Home Forums Event Espresso Premium Error code on thank you page when payment by credit card

Error code on thank you page when payment by credit card

Posted: December 8, 2016 at 2:41 pm

Viewing 7 reply threads


lee@safeswim.com

December 8, 2016 at 2:41 pm

Hi, We updated to WordPress 4.7 and Event Espresso 4.9.22 yesterday and now rather than the “Thank You”  confirmation page appearing after the payment screen, customers are receiving an error code: Error thrown – Call to member function format() on boolean. https://www.cprtrainingpro.com/wp-content/uploads/2016/12/Screen-Shot-2016-12-08-at-10.46.43-AM.png

Despite the error code the payments and registrations are going thru but the customer is getting the error message on the thank you page. This is causing customers to register again.

I have tested registration on several browsers (firefox, crome, safari) and have received the same error code. If I copy and paste the thank you page url for the registration in a different web browser then I can see the thank you page.

I also tested a registration with no fee (so no payment by credit card) and I did NOT get the error message. I believe the error code is only when a payment is by credit card. We are using Braintree for payments.

One of the registrations I received another error message: Fatal error: Uncaught Error: Call to a member function format() on boolean in /homepages/18/d156217255/htdocs/CprTraingingPro.comNEW/CprTrainingPro.com/wp-content/plugins/event-espresso-core-reg/core/domain/entities/DbSafeDateTime.php:52 Stack trace: #0 [internal function]: EventEspresso\core\domain\entities\DbSafeDateTime->__wakeup() #1 /homepages/18/d156217255/htdocs/CprTraingingPro.comNEW/CprTrainingPro.com/wp-includes/functions.php(325): unserialize(‘a:13:{s:2:”id”;…’) #2 /homepages/18/d156217255/htdocs/CprTraingingPro.comNEW/CprTrainingPro.com/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(504): maybe_unserialize(‘a:13:{s:2:”id”;…’) #3 /homepages/18/d156217255/htdocs/CprTraingingPro.comNEW/CprTrainingPro.com/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(410): EE_Session->_retrieve_session_data() #4 /homepages/18/d156217255/htdocs/CprTraingingPro.comNEW/CprTrainingPro.com/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(193): EE_Session->_espresso_sessi in /homepages/18/d156217255/htdocs/CprTraingingPro.comNEW/CprTrainingPro.com/wp-content/plugins/event-espresso-core-reg/core/domain/entities/DbSafeDateTime.php on line 52

Again, this only started happening yesterday when I updated WordPress and Event Espresso.

Thanks.


lee@safeswim.com

December 8, 2016 at 2:44 pm

Also, on the confirmation email the customer receives it lists the payment as invoice even though the payment is credit card. This only started happening yesterday when I updated WordPress and Event Espresso also.

Thanks.


Tony

  • Support Staff

December 8, 2016 at 2:55 pm

Hi there,

The dev are aware of this issue and are working on troubleshooting, it appears to be some kind of server config issue that prevents the correct date/time output.

In the meantime you I would advise switching back to version 4.9.21 which you can download here.

That version should not throw the error and will allow you to continue taking registrations whilst we troubleshoot this further.

To help troubleshoot could you let me know the Date, Time and Timezone settings in use on your site? (Dashboard -> Settings -> General)

Could you also let me know the PHP version in use on your server? You’ll find that within Event Espresso -> Maintenance -> System information (search for php_version)


lee@safeswim.com

December 8, 2016 at 3:00 pm

Ok, and how is the best way to switch back to 4.9.21?


lee@safeswim.com

December 8, 2016 at 3:08 pm

Date, Time and Timezone settings:
F j, Y
g:i a
Los Angeles

PHP version:
7.0.13


Josh

  • Support Staff

December 8, 2016 at 3:17 pm

You go to the WordPress > Plugins page, deactivate and delete the 4.9.22.p version, then install the zip file that you download here. Then activate.


lee@safeswim.com

December 8, 2016 at 4:10 pm

Hi, Ok so I switched to version 4.9.21 and it fixed the problems. Thank you.


Josh

  • Support Staff

December 13, 2016 at 12:07 pm

Update: version 4.9.23.p is release and it includes better error handling for the invalid date time error your site was having with 4.9.22.p

Viewing 7 reply threads

The support post ‘Error code on thank you page when payment by credit card’ 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