PHP Fatal error from WPML_MailExtractor.php on line 37
-
“PHP message: PHP Fatal error: Uncaught Exception: The message is not valid because it contains no message or html field. in /local/wp-content/plugins/wp-mail-logging/src/WPML_MailExtractor.php:37
1. The version of the plugin
Testing in 1.10.2 and 1.10.4
2. Your browser and operating system
Chromium and Arch Linux
3. Address of the page with the problem
On a local install of the site
4. Screenshots or videos
N/A
5. Be as descriptive as possible of what your issue isThis PHP fatal error occurs when creating a new user account from the backend.
It also appears to occur when a user account is created via the WooCommerce Checkout Process
private function extractMessage( $mail ) { if ( isset($mail['message']) ) { // usually the message is stored in the message field return $mail['message']; } elseif ( isset($mail['html']) ) { // for example Mandrill stores the message in the 'html' field (see gh-22) return $mail['html']; } throw new \Exception(self::ERROR_NO_FIELD); }
It appears to be the $mail[‘message’] and $mail[‘html’] both pass NULL triggering the function to through the error.
Plugins on the site
name,version admin-columns-pro,5.6.4 ac-addon-woocommerce,3.6.1 ac-addon-yoast-seo,1.1 advanced-custom-fields-pro,5.11.4 akismet,4.2.1 angelleye-updater,2.0.17 attributes-for-blocks,1.0.2 google-listings-and-ads,1.9.0 duracelltomi-google-tag-manager,1.14.2 gravityforms,2.5.15 gravity-forms-google-analytics-event-tracking,2.4.10 miniorange-wp-saml-idp-premium,13.0.8 paypal-for-woocommerce,3.0.16 woo-preview-emails,2.0.1 woo-preview-emails-pro-addon,1.0.0 hall-privacy-notice,1.0.0 redirection,5.1.3 servsuccessplus-customize,1.0 stream,3.8.2 svg-support,2.3.21 woocommerce-memberships-for-teams,1.6.2 user-role-editor,4.61 user-switching,1.5.8 woocommerce,6.0.0 woocommerce-avatax,1.15.0 woocommerce-google-analytics-pro,1.11.1 woocommerce-memberships,1.22.9 woocommerce-social-login,2.11.1 woocommerce-gateway-stripe,6.0.0 woocommerce-subscriptions,3.1.6 woocommerce-subscriptions-gifting,2.1.3 wpae-acf-add-on,1.0.1 wpae-user-add-on-pro,1.0.7 wpae-woocommerce-add-on,1.0.4 wp-all-export-pro,1.6.7 wp-mail-logging,1.10.4 wpo365-samesite,1.2 wordpress-seo,17.9
- The topic ‘PHP Fatal error from WPML_MailExtractor.php on line 37’ is closed to new replies.