Wp Logging not logging anything, but emails are sent and received perfectly
-
Hello Gregor!
Thanks for this very helpful, free plugin!
I wanted to let you know that I am currently seeing an issue regarding email logging on one of my serviced sites:
WP Mail Logging ist not logging anything / displaying an empty table in the admin log screen, even though there are emails sent and received.
I sent test emails using WP Mail SMTP and those were received without any issues. The setting used in WP Mail SMTP is “php” – so I am using my server’s php sendmail module to send emails from within that particular WordPress Installation.
It is a multisite setup, where each network site that makes use of WP Mail SMTP, has this plugin enabled alongside WP Mail Logging. The issue only occurs on site ID 1. Other sites in this network do not show this behaviour on WP Mail Logging screen.
There are mails sent using contact form 7 and woocommerce as well as wp system emails.
There is php 8.1 enabled for this vhost.
Any idea why the log screen table is not catching any sent mails?
I found something weird in the php error log related to WP Mail Logging, when trying to access the logs admin screen. I guess this is the culprit here (we do not use WPML, not did we ever use it… ):
[31-Aug-2023 12:18:30 UTC] WordPress database error Table 'wpdb.wp_wpml_mails' doesn't exist for query SELECT COUNT(*) FROM wp_wpml_mails WHERE
error
IS NULL ORerror
= '' made by do_action('toplevel_page_wpml_plugin_log'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\WPML_OptionsManager->LogMenu, do_action('wp_mail_logging_admin_tab_content'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\Admin\EmailLogsTab->display_tab_content, No3x\WPML\WPML_Email_Log_List->prepare_items, No3x\WPML\Model\Email_Log_Collection->get_statuses_count, No3x\WPML\Model\Email_Log_Collection->find_list [31-Aug-2023 12:18:30 UTC] WordPress database error Table 'wpdb.wp_wpml_mails' doesn't exist for query SELECT COUNT(*) FROM wp_wpml_mails WHEREerror
IS NOT NULL ANDerror
!= '' made by do_action('toplevel_page_wpml_plugin_log'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\WPML_OptionsManager->LogMenu, do_action('wp_mail_logging_admin_tab_content'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\Admin\EmailLogsTab->display_tab_content, No3x\WPML\WPML_Email_Log_List->prepare_items, No3x\WPML\Model\Email_Log_Collection->get_statuses_count, No3x\WPML\Model\Email_Log_Collection->find_list [31-Aug-2023 12:18:30 UTC] WordPress database error Table 'wpdb.wp_wpml_mails' doesn't exist for query SELECT * FROM wp_wpml_mails ORDER BYmail_id
desc LIMIT 25 made by do_action('toplevel_page_wpml_plugin_log'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\WPML_OptionsManager->LogMenu, do_action('wp_mail_logging_admin_tab_content'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\Admin\EmailLogsTab->display_tab_content, No3x\WPML\WPML_Email_Log_List->prepare_items, No3x\WPML\Model\Email_Log_Collection->find_list [31-Aug-2023 12:18:30 UTC] WordPress database error Table 'wpdb.wp_wpml_mails' doesn't exist for query SELECT COUNT(*) FROM wp_wpml_mails made by do_action('toplevel_page_wpml_plugin_log'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\WPML_OptionsManager->LogMenu, do_action('wp_mail_logging_admin_tab_content'), WP_Hook->do_action, WP_Hook->apply_filters, No3x\WPML\Admin\EmailLogsTab->display_tab_content, No3x\WPML\WPML_Email_Log_List->prepare_items, No3x\WPML\Model\Email_Log_Collection->find_listThanks
Saskia
- The topic ‘Wp Logging not logging anything, but emails are sent and received perfectly’ is closed to new replies.