Posted: 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? |
|
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! |
|
Also ‘generation and resend’ gives an error: `An error has occurred: |
|
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 |
|
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. |
|
This reply has been marked as private. | |
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? |
|
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. |
|
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? |
|
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? |
|
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. |
|
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. |
|
This reply has been marked as private. | |
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
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 |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
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:
Which is basically adding a called to the You’ll need to find where the above code is on your site and remove it to prevent this from happening. |
|
Thank you so much. This solved the problem! |
|
You’re most welcome 🙂 I’m glad that fixed it. |
|
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.