Not sending email with error
-
I’m amidst updating PHP to version 8.2 and are having problems with some pages not working. I get a message saying there’s a WordPress error, and that it’s going to send me an email with what’s wrong.
That email never arrives. I have been checking junk mail too. Sender is not blocked, I’ve whitelisted it before, and I have received mail from the same website earlier today about the version being updated.
The page I need help with: [log in to see the link]
-
You can turn on WordPress debugging to see details of the error. You may configure WordPress to log to a file instead of showing the error on the screen, if you prefer it that way.
Hi, @gappiah
It appears that there may be an issue with your email configuration. To help resolve this, here are a few steps you can take:
1. Verify that your email server is configured correctly and online.
2. Double-check your WordPress settings to make sure the correct email address is being used for sending emails.
3. Review your server logs for any errors related to email delivery.
4. Try using a different email service (e.g., Gmail, Outlook, etc.) to send emails from your WordPress site.
5. If the issue persists, consider disabling any email-related plugins you have installed to see if that resolves the problem. If the issue remains unresolved, contact your hosting provider for further assistance.
Thank you.It doesn’t say much.
WP_DEBUGmakes no difference (noWP_DEBUG_DISPLAYanywhere to stop it either), no errors displayed. TheWP_DEBUG_LOGgives me only two lines:[06-Jan-2023 08:27:37 UTC] 1672993657.8238-includes/class-wp-hide-post.php@init():414--> [06-Jan-2023 08:27:37 UTC] memory_get_usage1-5789328I have no idea what to make of this.
It doesn’t say much.
Were you able to trigger the same “WordPress error” you mentioned earlier?
You need to trigger the error before you’ll see anything on screen (or in the external log file you configured). And if you’re not using PHP 8.2 now, you need to switch to PHP 8.2 if you want to troubleshoot the problem under PHP 8.2.
Other than that, please check your server’s log files: that should give you historical logs.
Yes, I was able to get the same error. The problems only occur on PHP <8 too, and this upgrade is the reason I’m dealing with these problems, since our provider is deprecating 7.4 soon.
I don’t know where to check for other logs, I don’t see any anywhere. It’s not displayed on the site, nor in the
wp-content/debug.logfile.Shariful Islam provided steps to troubleshoot the email delivery problem on your site, with the hope that you can receive the error notification email. If you’ve not explored that path yet, I’ll recommend you do it now.
If that also doesn’t pan out, then you’ll need to disable all plugins, switch to the latest default theme (2023)… and test to be sure the problem is not from WordPress itself. If the problem goes away after this, you can then switch to your normal theme (and test again), then enable plugins one after the other (testing each time), until you find the culprit. You may use the Site Health & Troubleshooting plugin to do this test for your admin session only, without affecting the public site.
The topic ‘Not sending email with error’ is closed to new replies.