Posted: October 14, 2021 at 12:29 pm
I have had multiple reports of users receiving this error when trying to register for an event: “There has been a critical error on this website. Learn more about troubleshooting WordPress.” Including a screenshot below. After doing some testing, it looks like this is user error due to not selecting their ticket type before clicking the Register button. Knowing that people are people, and they don’t like to read, hoping there’s a better way to handle this error rather than redirecting to such a nondescript page. Assuming since multiple people have reported the problem, more will do the same thing in the future. Screenshot: Event link issue reported on: Any ideas? |
|
Hi there, We’ll need the error being thrown to fix that as it’s not normal, it should show a notice and not throw an error. If you edit your sites wp-config.php file and add this: https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug You should already have something like Let me know when that’s in place and I’ll run a test on the site. |
|
Hi, Just updated it to include what you provided. Thanks, |
|
Hi Stephanie, It’s from the custom code I gave you in your other thread: https://eventespresso.com/topic/auto-registering-for-additional-events/#post-327251 I’ve updated the gist to include an additional check, pleas update the code on your end to match which should prevent the error. |
|
Thanks Tony! I’ve updated it.Is it possible for you to run your test again to make sure we’re good? I made sure to add these lines you gave me back after updating the code to that latest version
|
|
It looks like you’ve added the above code twice. The error currently being thrown is:
Remove the snippet from the bottom of the plugin and edit the one at the top to match π |
|
Whoops, forgot to remove the one I kept as a reference. Just resaved. Did that work? |
|
Yep, that’s fixed it, and the notices work, and the functionality still works as expected as far as I can tell π |
|
Fantastic, thank you! |
|
You’re most welcome π |
|
The support post ‘Registration 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.