Support

Home Forums Event Espresso Premium EE 5.0.29.p unable to save “Track Invalid Checkout Access?” as No

EE 5.0.29.p unable to save “Track Invalid Checkout Access?” as No

Posted: November 13, 2024 at 10:40 am

Viewing 8 reply threads


Al Joly

November 13, 2024 at 10:40 am

After upgrading the option for “Track Invalid Checkout Access?” was changed back to Yes from No. Now we are getting this error when adding courses and redirecting users to the register page:

“An error has occurred:
Direct access to the registration checkout page is not allowed.
InvalidCheckoutAccess – checkoutAccessIsInvalid – 76”

Tried saving multiple times and no change, other options on the page can be saved.

### Begin System Info ###

— WordPress Configuration

Multisite: No
Version: 6.7
Language: en_CA
Table Prefix: Length: 3
WP_DEBUG: Enabled
Memory Limit: 40M

— Server Configuration

Operating System: Linux
PHP Version: 8.2.25
MySQL Version: 5.5.68
Server Software: Apache

— PHP Configuration

Memory Limit: 512M
Post Max Size: 16M
Upload Max Filesize: 16M
Time Limit: 120
Max Input Vars: 1000
Display Errors: N/A

— WordPress Active Plugins

Better Search Replace: 1.4.7
Contact Form 7: 6.0
Elementor: 3.25.4
Enable jQuery Migrate Helper: 1.4.0
Event Espresso: 5.0.29.p
Event Espresso – Attendee Mover (EE4.9.13+): 1.0.7.p
Event Espresso – Calendar (EE 4.3+): 3.2.16.p
Event Espresso – Events Table View Template (EE 4.4.9+): 1.3.9.p
Event Espresso – Grid View Template (EE 4.4.9+): 1.2.4.p
Event Espresso – MER – Multi Event Registration (EE 4.7.0+): 2.0.20.p
Event Espresso – PayPal Express Checkout with Smart Buttons (EE 4.9.64+): 1.0.8.p
Event Espresso – PayPal Payflow Pro (EE 4.6.0+): 1.0.4.p
Event Espresso – Wait Lists Manager: 1.0.5.p
Flamingo: 2.5
Mailgun: 2.1.0
Members: 3.2.10
Ocean Extra: 2.4.2
Secure Custom Fields: 6.3.10.2
Simple Cloudflare Turnstile: 1.27.1
Solid Backups: 9.1.13
VaultPress: 3.0.0
WPCode Lite: 2.2.3
Yoast SEO: 23.8

— WordPress Inactive Plugins

### End System Info ###


Tony

  • Support Staff

November 14, 2024 at 6:41 am

Hi there,

Thank you for reporting this.

I can reproduce this and have create a ticket for our developers to fix.

“An error has occurred:
Direct access to the registration checkout page is not allowed.
InvalidCheckoutAccess – checkoutAccessIsInvalid – 76”

However, this error is shown when you navigate directly to the registration checkout page rather than making a ticket selection and submitting it through the ticket selector.

It’s not directly related to the option you’ve mentioned above.

Can you link me to the page your are starting your registrations from?


Al Joly

November 14, 2024 at 7:18 am

It is here:
https://firstaidsafetytraining.ca/course-calendar/
If you click on a course and then click register it adds it to the cart then redirects.

It was working fine before the update, and it still works correctly in our development environment where it has not been upgraded to 5.0.29.p


Tony

  • Support Staff

November 14, 2024 at 8:49 am

Your using custom JavaScript there, does it work using the standard register button/path?

Which version is the dev site on? .28?


Al Joly

November 14, 2024 at 9:03 am

The dev site has Version 5.0.19.p
I think the standard register button took them to the course, then they had to select a ticket quantity, then add it to the cart then check out (but it was a long time ago), we just want click, adds to cart, and takes them to the checkout form.


Tony

  • Support Staff

November 15, 2024 at 3:48 am

I’ve been digging into this and I was wrong above, this is indeed directly related to the “Track Invalid Checkout Access?” option. That option checks the request as well as the page, so it is related to that option now being set to yes.

I think the standard register button took them to the course, then they had to select a ticket quantity, then add it to the cart then check out (but it was a long time ago), we just want click, adds to cart, and takes them to the checkout form.

Yeah, I understand what you are doing with that custom code, however, reviewing the code it’s not set up in a way EE normally expects.

For example, your add to cart button redirects the user to:

/event-registration/?event_cart=view#checkout

The Register now button redirects to /register/

Both should be directed to the same page and ‘register’ is the correct page in terms of how your critical pages are set up, so adding to the cart should be:

/register/?event_cart=view#checkout

The [ESPRESSO_CHECKOUT] shortcode should be on one page (the one set in Event Espresso -> General Settings -> Critical pages -> Registration Checkout) and you direct to that page for all submissions. Right now as far as I can you have that shortcode on 2 pages, EE is parsing the shortcode on both but that’s unexpected.

Allowing this to work with the ‘Track Invalid Checkout Access?’ you’ll need to add a uts value to the query string:

/register/?uts={123456789}&event_cart=view#checkout
/register/?uts={123456789}

I would use Date.now() for the value of UTS as it’s expected to be a timestamp and that should fix the request.


Al Joly

November 15, 2024 at 6:26 am

Tony,

Thanks I really appreciate that. I’ll get it updated and let you know.


Al Joly

November 15, 2024 at 6:52 am

That worked, really appreciate the help with that.


Tony

  • Support Staff

November 15, 2024 at 7:11 am

You’re most welcome, I’m it helped 🙂

Any further problems just let us know.

Viewing 8 reply threads

The support post ‘EE 5.0.29.p unable to save “Track Invalid Checkout Access?” as No’ 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