Posted: November 2, 2018 at 8:49 am
|
Let me start by providing some important information. WordPress Version: 4.9.8 Most Recent Changes: Updated WordPress and PHP We are experiencing a few different issues. They were only recently brought to my attention and I may need a little help from the community to figure them out. The first issue brought to my attention was on our event registration page. From there I discovered a few more issues. On the Events page of our website, there is an warning message in the title bar or header. The warning message is as follows: “Warning: A non-numeric value encountered in /home/html/edcscc/wp-content/themes/startit/framework/modules/title/title-functions.php on line 446”. Users are still able to register, but the warning message is displayed but obviously undesired. The next issue brought to my attention is that when a user completes registration for an event they are directed to a page that shows the confirmation, but if they click the “Download PDF” button they receive and error. The error is as follows: “Fatal error: Uncaught Error: Call to undefined function Dompdf\mb_internal_encoding() in /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Dompdf.php:274 Stack trace: #0 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Pdf_messenger.class.php(337): Dompdf\Dompdf->__construct(Object(Dompdf\Options)) #1 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Pdf_messenger.class.php(269): EE_Pdf_messenger->_do_pdf(‘<!doctype html>…’) #2 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(636): EE_Pdf_messenger->_send_message() #3 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(665): EE_messenger->send_message(Object(EE_Message), Object(EE_Receipt_message_type)) #4 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(59 in /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/src/Dompdf.php on line 274”. We also noticed while testing this that the registrant and the admin are not receiving confirmation emails. The final issue brought to my attention coincides with the second issue. Registrants and Admins are not receiving confirmation emails when a user registers for an event. When you check the backend it shows that the user successfully registered, but if you try to resend email you receive an error. The error is as follows: “Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/cssinliner/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php:146 Stack trace: #0 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(629): TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert(true) #1 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(438): EE_Email_messenger->_body() #2 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(636): EE_Email_messenger->_send_message() #3 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(665): EE_messenger->send_message(Object(EE_Message), Object(EE_Registration_message_type)) #4 /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/libraries/mess in /home/html/edcscc/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/cssinliner/vendor/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php on line 146”. I work in IT and have limited experience with WordPress and Event Espresso, but would appreciate any help that can be provided. Thank you in advance. |
Hi there,
That warning is from your theme, we’d need a copy of the theme to take a quick look and see what is happening. Can you add a link we can use to download the theme? This error:
Means your server does not have the MBString module enabled/install, you’ll need to contact your host and have them enable that module on the server.
This is likely from the error above, if you enable MBString and run a new registration, does it work then? |
|
|
Tony, Thanks for the quick response. Here is the link: I believe this theme was picked by the site developer. The company that owns the site uses us to maintain and edit. Please let me know if there is anything else I can do to help. |
Ok, do you have FTP access to the site? If so you can grab a copy of the theme from Grab a copy of the theme’s directory (I’m guessing it will be I don’t have access to the theme on the above link without purchasing the theme. Or if you prefer you can send me FTP credentials to download i from the site itself using this link: |
|
Actually, I had a look at the site and it looks like you are using a rather old version of the theme and the above warning is being thrown all over the site, not just on EE pages (meaning its an issue with the theme rather than a conflict with EE). Is there something preventing you from updating the theme? If you don’t want to update the theme, a workaround (although I don’t recommend it) is to stop the site displaying errors on the front end. Usually if the site displays error you’ll find WP_DEBUG has been enabled in Change that to If they continue to display you can try adding:
|
|
|
Tony, Thanks for the continued support. I was unaware we had an older version of the theme. As I had mentioned in the previous post another company had setup the site and we just maintain and edit it. The reason it hasn’t been updated is because it doesn’t show that there is an available update for the theme in WordPress. I will most likely have to track down the login credentials for themeforest and attempt to update through their site. We will be attempting the MBString fix tonight so I will let you know if that helps with the emails. As for creating the download link for the theme, let me try to get it updated first and then get back with you. Thanks again for the help. |
Just to clarify my comment above as re-reading above comes across a little different than I intended. With regards to the site displaying errors to visitors, that should be disabled either way, you may want to log errors but rarely want to display errors on production servers. If WP_DEBUG is enabled, disable it. (Enable it when you ned to debug an issue so it displays errors again) If errors still display with WP_DEBUG disabled and errors still show on the front end, then PHP is set with display_errors enabled, you can disable that with What I meant above was I didn’t recommend not updating the theme.
You’re most welcome, please do keep us updated. |
|
The support post ‘Several Fatal Errors with Event Registrations and Confimation Emails’ 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.