triliji
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)
– Checking the correct tags were added to the emails being sent out (they were)
– Installing Mail Loggers for monitoring (nothing is sending out)
– Checking EE Messages section (all mail is queued for sending, but never sends)
– Manually sending out the emails (always fails)
– Making sure the wp-cron is turned on to trigger the above (it is)
– Creating a Staging Copy of the site, and stripping it down to only CORE EE4 and Default 2023 WordPress theme (still does not work)
– Manually uploading a fresh copy of EE4 core (also didn’t 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:
1. https://bestfitannuities.com/staging/events/are-annuities-good-investments/
2. Register
3. Once registered click on “view receipt”
4. Once there, click “download PDF”
5. WordPress critical error
The mailing issue I think is a separate fatal PHP error.
—-
ERROR LOG OUTPUT
[18-Jan-2023 02:35:26 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 03:38:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 03:38:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 07:44:36 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 09:57:33 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 11:45:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 13:11:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 14:15:44 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 15:18:54 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 16:58:56 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 18:32:16 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 20:09:26 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 21:30:39 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 22:43:29 UTC] PHP Fatal error: Uncaught Error: Call to undefined function TijsVerkoyen\CssToInlineStyles\mb_convert_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:116
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php(36): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml('\n<!DOCTYPE html...')
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(626): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert('\n<!DOCTYPE html...', '/* ------------...')
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(437): EE_Email_messenger->_body()
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 116
[18-Jan-2023 22:58:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Dompdf\mb_internal_encoding() in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/dompdf/dompdf/src/Dompdf.php:295
Stack trace:
#0 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/dompdf/dompdf/src/Dompdf.php(269): Dompdf\Dompdf->setPhpConfig()
#1 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/services/adapters/PdfAdapter.php(65): Dompdf\Dompdf->__construct(Object(Dompdf\Options))
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Pdf_messenger.class.php(335): EventEspresso\core\services\adapters\PdfAdapter->generate('<!doctype html>...', 'Best Fit Annuit...', true)
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Pdf_messenger.class.php(275): EE_Pdf_messenger->_do_pdf('<!doctype html>...')
#4 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libra in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/vendor/dompdf/dompdf/src/Dompdf.php on line 295
—-
We are running PHP 7.4.33 with newest version of WordPress.
Please advise.
Tony
January 18, 2023 at 4:50 pm
Add New Note to this Reply
Hi There,
The mb_convert_encoding() function is from the mbstring
PHP Extension.
You’ll need to enable MBString on your server to fix the above error:
https://www.php.net/manual/en/mbstring.installation.php
Sometimes all that is needed is to uncomment something like:
extension=mbstring
Within the PHP.ini file, but that depends if it has already been installed.
triliji
January 18, 2023 at 8:52 pm
Add New Note to this Reply
Tony,
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?
Thanks,
Keryn
Tony
January 19, 2023 at 6:33 am
Add New Note to this Reply
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:
https://eventespresso.com/send-login-details/
triliji
January 19, 2023 at 10:11 am
Add New Note to this Reply
Tony,
There are more fatal errors present this morning. See below:
[19-Jan-2023 11:40:18 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given, called in /home/bestfit/public_html/wp-includes/class-wp-hook.php on line 308 and defined in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543
Stack trace:
#0 /home/bestfit/public_html/wp-includes/class-wp-hook.php(308): EE_Html_messenger->add_powered_by_credit_link_to_receipt_and_invoice(NULL, NULL, Object(EE_Ticketing_message_type))
#1 /home/bestfit/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php(471): apply_filters('FHEE__EE_Html_m...', NULL, NULL, Object(EE_Ticketing_message_type))
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Html_me in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php on line 543
[19-Jan-2023 16:32:26 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given, called in /home/bestfit/public_html/wp-includes/class-wp-hook.php on line 308 and defined in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543
Stack trace:
#0 /home/bestfit/public_html/wp-includes/class-wp-hook.php(308): EE_Html_messenger->add_powered_by_credit_link_to_receipt_and_invoice(NULL, NULL, Object(EE_Ticketing_message_type))
#1 /home/bestfit/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
#2 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php(471): apply_filters('FHEE__EE_Html_m...', NULL, NULL, Object(EE_Ticketing_message_type))
#3 /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Html_me in /home/bestfit/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php on line 543
I will also send temp login details.
Cheers,
Keryn
triliji
January 19, 2023 at 10:21 am
Add New Note to this Reply
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 mbstring
item to get these last errors cleared up so it’s all working correctly.
Thanks 🙂
Tony
January 19, 2023 at 2:18 pm
Add New Note to this Reply
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.
triliji
January 24, 2023 at 1:08 pm
Add New Note to this Reply
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.
[EVENT_LIST]
[DATETIME_LIST] *
[ATTENDEE_LIST] *
[QUESTION_LIST] *
—-
Are you saying that filling in sections in a template that isn’t being used will remove the PHP errors?
Tony
January 24, 2023 at 2:14 pm
Add New Note to this Reply
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.
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.
Are you saying that filling in sections in a template that isn’t being used will remove the PHP errors?
No.
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?
triliji
January 24, 2023 at 3:15 pm
Add New Note to this Reply
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.
Tony
January 24, 2023 at 3:56 pm
Add New Note to this Reply
The last record of the error was Jan 19th, but that isn’t to say it’s still not an issue.
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.
You would know if this was still an issue pretty much any time you generated/viewed a PDF as that’s when the code hooks in.