Posted: April 21, 2021 at 6:42 am
After updating Event Espresso, the message templates do not work anymore. I get the message: A critical error has occurred on this site. Check your site administrator email inbox for instructions. It is not possible to edit the message templates. What can be wrong? I installed the current version of EE4 without any modifications. Kind regards, |
|
Hi Sya, We’ll need to see the ‘full’ error being thrown to help with this, the ‘A critical error has occurred on this site’ is a front-facing error but if you check the email sent to the admin if should show more details. If not take a look in your server error logs for anything around the same time you got the above. If you can post that here I’ll take a look. |
|
I have tried and tried to fix it but I keep getting the message and no email is send to the administrator address with further instructions. NONE. Also, the tax is included even though I set it to exlude. Further more, it is not possible anymore to register for any event. The last step gives a message to refresh and try again. In the messages you can see I tried a lot, and it seems like it was successful because it marks the messages as been send. They were not. |
|
Ok, that’s a WordPress core feature and not something from Event Espresso.
Where are you referring to here?
Likely whatever is throwing the error in the template is being thrown when EE tries to trigger the emails. We’ll need the error being thrown to be able to narrow this down some. Your host will usually have a section you can use to view the servers error logs in your control panel, have you checked there? If not do you have FTP/File manager access on the server? |
|
This reply has been marked as private. | |
Unfortunately, that’s only half the error, it’s the stack trace that shows what called the function that threw the error but just before that should be something showing ‘Fatal error ….’ at the beginning. |
|
Hi Tony, function change_ee_ticket_selector_base_price_display( $ticket_price, $ticket ) { $x = $ticket->base_price(); $y = $x->get(‘PRC_amount’); return $y; That works. Also the messages are not giving an error any more while trying to open them. But it is still not possible to register for an event. The last step gives an error. Finalizing the registration is not possible. It works on my testing server so I am lost here. Please help! Kind regards, |
|
I can’t help without the error being thrown as I have no idea what is happening without it. Can you link me to an event I can view this on? |
|
This reply has been marked as private. | |
Ok, are you comfortable with FTP or some form of File Manager on the site? If so, in your sites https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug You’ll already have something like:
The code in the above section replaces that single line and tells you site to store errors in a place I can view them. |
|
This reply has been marked as private. | |
Not with the code I mentioned above no. The requests are throwing error 500, yet nothing is saved to the logs. I need the error being thrown on the request, without that I can’t tell you what is happening here. Check your sites error_log (or similar) within the last few minutes for any fatal errors and post those here, please. |
|
This reply has been marked as private. | |
Did you check the error_log (not debug.log) in the root directory of the site for any errors? If nothing is being saved in debug.log then at least something should be in PHP’s main error log file. |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
This reply has been marked as private. | |
What kind of hosting are you using here? Why is the upstream server closing the connection? This is starting to look more like a server issue than an EE issue. If yo go to Event Espresso -> Messages -> Settings. Set the ‘Generate and send all messages’ option to ‘On the same request’. Do registrations finalize then? You said this was after an EE update, which version were you running prior to this as nothing has changed within the messaging system for a long time now and it looks like your server doesn’t agree with something within it, but again that wouldn’t have changed with a recent update. |
|
This reply has been marked as private. | |
Sorry, you’ve lost me here. I didn’t mention a memory issue?
Again, I don’t think this is an issue with EE itself. Your server is closing the connection, apparently after 45 seconds (which is a long time for that page to load).
Go to Event Espresso -> Maintenance -> System information (tab). There you’ll find your ee_activation_history. What version were you running prior to the update? I’m guessing you were running a version from before the ‘new’ (which is not so new) messaging system.
Is your testing site on the exact same server set up or different? — If you can send temp login details I’ll take a look over the messages and see if anything stands out. We usually require support tokens to do so but I’ll take a quick look first. |
|
I can open up the message templates fine, but when I send a test email, that’s when it fails. I see you have the MailJet plugin installed, are you using that for Transactional Email or just newsletters? If you temporarily disable the MailJet plugin, then test an email within Event Espresso, does it work then? |
|
F….. It was the problem! Holy… Thank u. I was digging in the wrong place. Thank u! |
|
This reply has been marked as private. | |
You’re most welcome 🙂 |
|
The support post ‘critical error when trying to open message template’ 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.