Support

Home Forums Event Espresso Premium Receipt URL in registration email shows 403 error.

Receipt URL in registration email shows 403 error.

Posted: October 18, 2022 at 5:29 am

Viewing 16 reply threads


adijeff

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:
https://domain.com/wp-admin/https://domain.com?ee=msg_url_trigger&…
If I remove the first part (https://domain.com/wp-admin/) the link works fine.

Thanks for any help on diagnosing this issue.


Tony

  • Support Staff

October 18, 2022 at 10:08 am

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


adijeff

October 19, 2022 at 6:36 am

Hi Tony,
Thanks for your reply. I see this:
<a href="[RECEIPT_URL]">You can view your receipt here</a>
Screenshot: https://i.imgur.com/NzDys3u.png
Thanks


Tony

  • Support Staff

October 19, 2022 at 10:35 am

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.


adijeff

October 21, 2022 at 5:31 am

Thanks Tony. The icon does work fine. I do have custom code that modifies the EE booking process.

I have done the following:
– cloned the site
– disabled all plugins except EE
– removed all custom functions

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.


Tony

  • Support Staff

October 24, 2022 at 2:18 pm

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)


adijeff

October 26, 2022 at 8:47 am

Hi Tony, both the email and the preview are showing the wrong link. I will link you to an event in a private reply.


adijeff

October 26, 2022 at 8:50 am

This reply has been marked as private.


adijeff

October 26, 2022 at 9:46 am

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.


adijeff

October 26, 2022 at 9:56 am

This reply has been marked as private.


Tony

  • Support Staff

October 27, 2022 at 3:31 am

but the primary registrant email had the wrong formatting in the link causing the 403 error

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?


adijeff

November 1, 2022 at 4:37 am

Yes, after fixing the template, the link is still broken when I retrigger the email .


Tony

  • Support Staff

November 1, 2022 at 4:14 pm

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?


adijeff

November 2, 2022 at 10:51 am

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.


Tony

  • Support Staff

November 2, 2022 at 11:09 am

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?


adijeff

November 3, 2022 at 8:24 am

Ah, yes it does. The link is correct.

Sorry I misunderstood what the “queue for resending” button did.

Thanks for your help Tony.


Tony

  • Support Staff

November 3, 2022 at 10:55 am

No apology needed ๐Ÿ™‚

I’m glad it’s working.

Viewing 16 reply threads

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.

Event Espresso