Support

Home Forums Event Espresso Premium URL generated from [INVOICE_URL] doesn't link to invoice anymore

URL generated from [INVOICE_URL] doesn't link to invoice anymore

Posted: May 2, 2023 at 3:48 pm

Viewing 27 reply threads


haerzchlopfaehebamme

May 2, 2023 at 3:48 pm

Hi
why does an URL generated from [INVOICE_URL] in the confirmation email like this one:
https://haerzchlopfae-hebamme.ch/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=1-4930d39e73cf37ec3ded2b3622876281&GRP_ID=14&id=1658
no longer link to the invoice but fall back on the site home?
Looking forward to learn how I can solve this issue!
Kind regards,
Lukas


haerzchlopfaehebamme

May 2, 2023 at 3:52 pm

addendum: the same happens when I click on the transaction icons in the registrations list. None of them links to an invoice anymore!


haerzchlopfaehebamme

May 2, 2023 at 3:55 pm

Version 5.0.3.p
WP 6.2
PHP 8.0.28


haerzchlopfaehebamme

May 2, 2023 at 4:00 pm

and, since it’s always the same URL, the same is true for Registration details > Show transaction > Show invoice.
Thus, my client can’t even send out invoices anymore at all.
Please help urgently!


Tony

  • Support Staff

May 2, 2023 at 4:43 pm

Hi there,

Go to Event Espresso -> Messages -> Settings (tab)

Click the HTML Tab, is Invoice in the active section or inactive?

https://monosnap.com/file/hE0eGvZNrfl7MLbgz4NZLM18bX4peK


haerzchlopfaehebamme

May 3, 2023 at 1:32 am

Hi Tony,
thanks for your reply. It’s in the active section.
Best,
Lukas


Tony

  • Support Staff

May 3, 2023 at 2:14 am

Ok, drag it over to be inactive.

Wait a couple of seconds and drag it back again.

That just makes sure the sessions are in sync.

Any security plugins enabled?


haerzchlopfaehebamme

May 3, 2023 at 2:55 am

unfortunately de- and reactivating didn’t solve it. Waited +10 secs.
Wordfence (not Premium) is active.


Tony

  • Support Staff

May 3, 2023 at 6:19 am

Hmm, ok, so the last time we saw this is was due to the host’s mod_sec rules being triggered and they redirected the request to home.

Can you check with your host and ask them to confirm on their end that the request isn’t being blocked? (Send them the URL you included in your opening post).

Have you checked your server’s error logs to see if any errors are being thrown?


haerzchlopfaehebamme

May 3, 2023 at 7:28 am

thanks!
I’ve opened a ticket with the hosting service and am waiting for answer.
I’ve looked into the server’s error log and found nothing, but tbh I’m not that deep into the matter.


Tony

  • Support Staff

May 3, 2023 at 1:00 pm

From the info we have so far, I’d say something is either blocking the request or there’s an error being thrown (although an error normally wouldn’t redirect you back to the home page).

Did the host response to the above ticket?


haerzchlopfaehebamme

May 3, 2023 at 1:13 pm

I got the answer just now. But it’s not what we would have expected. I know the supporter of the hosting company being a know-it-all.
How should I counter?


Tony

  • Support Staff

May 3, 2023 at 1:25 pm

Post their reply in a private reply here and I’ll take a look.


haerzchlopfaehebamme

May 3, 2023 at 2:00 pm

This reply has been marked as private.


Tony

  • Support Staff

May 4, 2023 at 2:11 am

This reply has been marked as private.


haerzchlopfaehebamme

May 4, 2023 at 2:15 am

Hi Tony,
I’m sorry, but this gets too technical for me. What’s the conclusion?
And more important: how can access to the invoices be restored?
If you need admin access to the site, please let me know.
Thanks,
lukas


Tony

  • Support Staff

May 4, 2023 at 4:56 am

I’m a little confused here, you asked me how you should reply to your hosts reply above, that’s my answer.

They basically replied with “Shouldn’t that link include a .PHP file?”, the answer is no.

Did they check if mod_sec (or anything else) was blocking the request at all?


haerzchlopfaehebamme

May 4, 2023 at 6:06 am

ah, sorry!
I’ve forwarded it to the hosting support; waiting for answer.


Tony

  • Support Staff

May 4, 2023 at 7:07 am

No problem 🙂

We can run through how to test the link with no other plugins activated to see if this is a plugin conflict if you’d like to try that?

However, I recommend creating a database backup before doing so just to be safe.


haerzchlopfaehebamme

May 4, 2023 at 7:13 am

thats the latest answer from the hosting support
I have enabled mod_security for you in the cPanel.
You can disable this there for testing purposes.
Loaded without deactivation are the Imunfiy360 rules:
https://blog.imunify360.com/modsecurity-rules-how-to-guide


haerzchlopfaehebamme

May 4, 2023 at 9:18 am

Hi Tony,
I disabled mod_security to no avail.
All invoice links still redirect to home.

At least I remembered that I have a staging site with EE 4.10.44.p, WP 6.1.1 and some more not yet updated plug-ins where the invoice links work as expected.
Next I’ll update one plug-in after the other and find out when the links stop working.

I’ll let you know.
Kind regards,
Lukas


haerzchlopfaehebamme

May 4, 2023 at 9:35 am

I first updated EE to 5.0.3.p.
This led to the problem we have on production.
I rolled back to 4.10.44.p and the invoice links now also are redirected to home with this version.
Since updating to 5.0.3.p also included updating the EE database, this is the only part that isn’t the same anymore as before. Unfortunately I didn’t back up the db before that.


Tony

  • Support Staff

May 4, 2023 at 9:46 am

Since updating to 5.0.3.p also included updating the EE database, this is the only part that isn’t the same anymore as before.

The only thing that 5.0.3 updates within the database is to copy the details USD to assign a venue to an event from one location to another.

I’ll take a look at the staging site if you can sent temp login details over using this form:

https://eventespresso.com/send-login-details/


haerzchlopfaehebamme

May 4, 2023 at 9:59 am

This reply has been marked as private.


haerzchlopfaehebamme

May 4, 2023 at 11:25 am

Sorry, I just sent all information needed via the form you provided


Tony

  • Support Staff

May 4, 2023 at 11:45 am

Interesting!

Ok, so the problem on staging is the Invoice message type has been disabled, but differently to how I expected.

On the LIVE site go to Event Espresso -> Messages -> Default Message Templates.

Find Invoice in the list.

Is the ‘Edit Purchaser’ link greyed out?

Click on it and make sure the toggle switch is active (green).

If it’s like this, it’s disabled: https://monosnap.com/file/HNCE8nIWlns4s637ZlTe3AtEWMDVAO


haerzchlopfaehebamme

May 4, 2023 at 1:16 pm

Hi Tony,
thank you very much for investigating!
You bet it was greyed out on live.
How is it possible that this setting has been changed?
It wasn’t the client (they don’t touch anything they don’t know, and neither was it me (and I’m the only one who is commissioned to perform admin tasks).
As it was working before, there must have been a trigger that deactivated it.
In this rational world of code, there seems to exist a faint leftover of unknown…
Thanks again for your dedication!
All the best,
Lukas


Tony

  • Support Staff

May 4, 2023 at 1:33 pm

Yep, unfortunately, that one I can’t answer … I (possibly) could have if you had a Database backup as I could have run the update locally to see what was happening.

I’ve run many (many many!) migrations and updates from 4.10.XX to EE5 and not had this happen at all so far but will try and do some investigating to see if I can reproduce.

Viewing 27 reply threads

The support post ‘URL generated from [INVOICE_URL] doesn't link to invoice anymore’ 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