Posted: October 18, 2022 at 5:29 am
Hi, I have a receipt URL in the registration email using this shortcode: [RECEIPT_URL]. The link generated in wrong, and causes a 403 error. It repeats the domain, like this: Thanks for any help on diagnosing this issue. |
|
Hi there, Switch the editor to text mode and view the above shortcode, is it wrapped as a Hyperlink? if so post what you can see around that shortcode either here or us a screenshot if preferred. https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Hi Tony, |
|
Hmm, that’s not what I was expecting to be honest (the above is correct, I was expecting it not to be). Ok, so let’s start with the easy one. Go to Event Espresso -> Transactions In that list click on the icon for a transaction. Does that link work? The reason I’m asking you to test that is it’s exactly the same function used to generate both. There are a lot of filters that can be used to change the URL on the fly, I assume you don’t have any custom code hooking into Event Espresso? If so, test with those temporarily disabled. Note to test you will need to retrigger the email with any custom code disabled, not just test the same link again. |
|
Thanks Tony. The icon does work fine. I do have custom code that modifies the EE booking process. I have done the following: I still get an incorrect link on the email, after clicking the two arrows icon (Queue for Resending) in a message in /wp-admin/admin.php?page=espresso_messages I’m struggling to know what else to strip out. Thanks for any further help you might be able to give. |
|
Hmm, so what you have done so far is exactly would I would have recommended, so nice sleuthing. When you view the link, are you viewing your email or the preview generated through EE? (Event Espresso -> Messages, clicking ) Do you have an event you can link me to so I can view this? (You can mark your reply private so only EE staff can view it f preferred) |
|
Hi Tony, both the email and the preview are showing the wrong link. I will link you to an event in a private reply. |
|
This reply has been marked as private. | |
Hi Tony, I’ve just looked at the email templates again, and the registrant email was correct, but the primary registrant email had the wrong formatting in the link causing the 403 error. I have now edited the template, and tested it and it’s working fine. Thanks for all your help anyway, you can close this ticket. |
|
This reply has been marked as private. | |
Ah! Apologies, I didn’t even think about the Primary Registrant context as we don’t have it enabled by default… but that should have come to mind on my end! Glad you found it ๐ — As for your last private reply, that’s happening even after fixing the templates? |
|
Yes, after fixing the template, the link is still broken when I retrigger the email . |
|
Hmm, ok, so can you confirm you have checked all of the message contexts in this case? The reason I ask is I can’t reproduce this at all so I’m assuming it’s an issue with the specific template/context being generated for that event. Using custom templates at all or just global? |
|
Yes, message context in this case is “registrant” which is correctly formatted. I’m using the global template. It’s not a big issue, since the broken link problem is resolved, but strange it’s not updating the template changes as expected on retriggered emails. |
|
Ohhh! Wait. The button you are clicking re-queues the current message. In short it resends the current message already generated. You need to retrigger the regeneration of the message, you do that by clicking the envelope icon shown on the registration list table actions. Event Espresso -> Registrations. Retrigger the registrations approved message from there, does it show the correct link on the newly generated email then? |
|
Ah, yes it does. The link is correct. Sorry I misunderstood what the “queue for resending” button did. Thanks for your help Tony. |
|
No apology needed ๐ I’m glad it’s working. |
|
The support post ‘Receipt URL in registration email shows 403 error.’ 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.