Support

Home Forums Event Espresso Premium Payment Successful, but THANK YOU page is pending with PHP8.0 and PHP8.1

Payment Successful, but THANK YOU page is pending with PHP8.0 and PHP8.1

Posted: October 24, 2022 at 2:44 pm

Viewing 18 reply threads


CapellaAmersfoort

October 24, 2022 at 2:44 pm

Hi,

Due to security we have upgrade our website from PHP 7.4 to PHP 8.0 or higher. With PHP7.4 the Thank You page is working, but with PHP 8.0 and higher, it is pending… How can this be solved?


CapellaAmersfoort

October 25, 2022 at 1:03 pm

Because the Thank You page is not working I switched back to php 7.4. And now no mail will be send to the people who ordered a ticket. Also after resending it via de admin portal. Could you please help!


CapellaAmersfoort

October 25, 2022 at 1:11 pm

Also ‘generation and resend’ gives an error: `An error has occurred:
The messages were not generated. This could mean there is already a batch being generated on a separate request, or because the selected messages are not ready for generation. Please wait a minute or two and try again.`


Tony

  • Support Staff

October 25, 2022 at 1:38 pm

Hi there,

For the PHP8 issue, which payment method are you using?

—-

Switching back to PHP7.4 shouldn’t cause any issues with messages.

When you go to Event Espresso -> Messages, what do you see in the message queue?

Can you add a screenshot?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


CapellaAmersfoort

October 25, 2022 at 1:55 pm

Payment method is pronamic – iDeal.

In the messages queue I see nothing special. After an ticket is bought, the message is visible in the ‘sent’ box. Also after resend the message, the messages will not receive at my or other mailboxes.


CapellaAmersfoort

October 25, 2022 at 2:15 pm

This reply has been marked as private.


Tony

  • Support Staff

October 25, 2022 at 2:27 pm

The fact that is it showing as sent is something special.

Event Espresso doesn’t “send” email itself, what it does is generate the email content, headers etc and then pass that over to wp_mail(), that function does its own check, and applies various filters to allow other plugins to hook in and change whatever they are set to do etc.

The email is then sent however your server is set to send email from there.

If Event Espresso is shown the email as sent within the message activity, then all of the above worked as expected with no errors.

If the email then isn’t received from there it is usually an issue outside of your site.

How hosts your email and how is you site currently set up to send email? For example, are you just using your host’s mailserver or sending mail via SMTP through so Gmail?


CapellaAmersfoort

October 25, 2022 at 2:32 pm

Ok, thnaks. I will check the issue with the mail. But the issue with PHP 8.0 and higher of pending page is still valid.


Tony

  • Support Staff

October 25, 2022 at 2:37 pm

I’m not getting any issues with iDeal on PHP8.0 currently:

https://monosnap.com/file/ADKJ6Em7yTr4A1W4z539A5pi6mnPOD

That’s on a site running 8.0.24.

What happens with the registration, transaction and payment status on your site?


Garth

  • Support Staff

October 25, 2022 at 3:16 pm

Hi there,

Can you tell me what you mean that the Thank You page is “pending”? Do you have a live page we can see this happening?


CapellaAmersfoort

October 25, 2022 at 3:39 pm

When the payment is done, you wil get back to our website with order information. This page is not coming/loading. When I change the php setting on my website hosting company from 8.1 back to 7.4 and reload the page, the page loaded/ is visible with the order information.
Registation, transaction and payment status are ok. Only the visitor get a loading page without any information about the payment


Tony

  • Support Staff

October 26, 2022 at 4:03 am

Is the page just blank? As in a whitescreen?

Have you checked the error logs around the time of the registration/payment?

I’ve tested on about PHP8 and PHP8.1 using the iDeal mollie payment method and have not had any issues, so it sounds like an error is being thrown on your site but we will need that error to narrow this down some.


CapellaAmersfoort

October 26, 2022 at 5:41 am

This reply has been marked as private.


Tony

  • Support Staff

October 26, 2022 at 6:03 am

If I get rid of the loading screen that your theme is adding it shows a critical error is being thrown:

https://monosnap.com/file/HoZSyoEIpkL989P78KkyzL250aU99M

That would show an error in the error logs.

Or you can edit your site’s wp-config.php file and you’ll have something like this:

define( 'WP_DEBUG', false );

Swap that single line out for the snippet posted here:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

That tells your site to log error in /wp-content/debug.log so we can view them


CapellaAmersfoort

October 26, 2022 at 6:16 am

This reply has been marked as private.


CapellaAmersfoort

October 26, 2022 at 6:27 am

This reply has been marked as private.


Tony

  • Support Staff

October 26, 2022 at 7:27 am

Ok, so the problem on your site is at some point, someone added this code:

https://gist.github.com/Pebblo/525890c30baa7e207e4f

Could be within functions.php, could be in a custom functions pluign etc.

Whats happening now, is at some point someone has either removed this section of the code:

https://gist.github.com/Pebblo/525890c30baa7e207e4f#file-ee_display_download_tickets-php-L4-L26

And left this:

https://gist.github.com/Pebblo/525890c30baa7e207e4f#file-ee_display_download_tickets-php-L27

So somewhere on your site is this line:

add_action( 'AHEE__thank_you_page_overview_template__content', 'ee_display_download_tickets');

Which is basically adding a called to the ee_display_download_tickets function to the AHEE__thank_you_page_overview_template__content hook, but the function no longer exists. In PHP7 that was fine, in PHP8+, it throws a fatal error.

You’ll need to find where the above code is on your site and remove it to prevent this from happening.


CapellaAmersfoort

October 26, 2022 at 7:46 am

Thank you so much. This solved the problem!


Tony

  • Support Staff

October 26, 2022 at 7:50 am

You’re most welcome 🙂

I’m glad that fixed it.

Viewing 18 reply threads

The support post ‘Payment Successful, but THANK YOU page is pending with PHP8.0 and PHP8.1’ 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