Posted: January 18, 2023 at 4:23 pm
We have been having issues with emails not sending out, and getting critical errors when trying to download/view PDFs.
Through testing we have attempted:
– SMTP Plugin (did not work)
After all of the above, we are still getting FATAL PHP errors coming from files in your core plugin, when we are running literally nothing else on the website. At this point I can only assume it’s an issue with the plugin, or something in our server setup we need to activate/install to get your plugin to work correctly. So I’m hoping you can give us some advice based on the following errors.
Reproduce at least one of the issues:
The mailing issue I think is a separate fatal PHP error.
ERROR LOG OUTPUT
We are running PHP 7.4.33 with newest version of WordPress.
The mb_convert_encoding() function is from the
You’ll need to enable MBString on your server to fix the above error:
Sometimes all that is needed is to uncomment something like:
Within the PHP.ini file, but that depends if it has already been installed.
That fixes the PDF issue, but not the email sending issue. Is there another PHP item I need to turn on for the emails to work?
Not unless you’re getting more fatal errors.
If you look in your Message Activity table, are there any messages for Invoice in that queue?
In fact, it might be easier if I can take a quick look over the message queue to see if anything stands out. If that’s ok you can send temp login details using this form:
There are more fatal errors present this morning. See below:
I will also send temp login details.
We did get a number of emails through last night, a little delayed, but they came. I wanted to send the above fatal errors over however to see if there is anything else we need to turn on similar to the
To fix the above, go to Event Espresso -> Messages -> Default Message Templates.
Click to edit the Receipt and Invoice templates (open them in separate tabs if preferred).
Do the sections of either/both of those show up as empty?
If so, click the ‘rest remplates’ button for the one/ones that do, all of those sections should not be empty and thats why the error is thrown. Resetting the templats rebuilds it from the defaults within EE.
For the receipt, all fields are filled in.
For the Invoice (which isn’t activated or in use), the following sections are empty, but resetting the templates does not fill in these sections. I can fill them in manually, but thought you should know that the reset doesn’t work.
Are you saying that filling in sections in a template that isn’t being used will remove the PHP errors?
Those are supposed to be empty and are fine as is.
The error you are getting is saying that there is no content for the Invoice or Receipt at all. If the main content has ‘something’ within it thats fine.
I’ve seen that error from something happening to the message template which then sets all of the fields in the template to nothing. The function above hooks in to add some content to it and rather than getting a string of content, it gets nothing at all and throws an error.
Are you still getting that same fatal currently?
The last record of the error was Jan 19th, but that isn’t to say it’s still not an issue.
We have however fixed the primary problem of mail not sending, and the PDFs not working, which is great.
Yeah, but, that specific error means either the Receipt or Invoice template being received by that code, was empty.
You’ve mentioned the receipt isn’t empty and the Invoice is not used.
So that error may have been happening because of the fatal being thrown by DOMPDF due to MBString not being enabled, now that it is enabled, it is no longer thrown.
The support post ‘Fatal Errors with Base EE4’ 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.