Says wp_mail already declared
-
Hello, I suddenly started seeing the following error on my WordPress dashboard:
Postman: wp_mail has been declared by another plugin or theme, so you won’t be able to use Postman until the conflict is resolved.
More info that may help –/home/petert11/public_html/wp-includes/pluggable.php:173
As you know, pluggable.php line 173 is just where WordPress declares wp_mail to be a pluggable function, so that was no help in finding the cause of this problem.
I downloaded my entire plugins directory to my computer and had Notepad++ scan everything for any instance of
function wp_mail()
and the only one that came up was the one in the Post SMTP plugin. None of my other plugins have it, and I haven’t changed themes at all lately.Diagnostic test output:
HostName: ecngx245.inmotionhosting.com
OS: Linux ecngx245.inmotionhosting.com 3.10.0-714.10.2.lve1.5.19.7.el7.x86_64 #1 SMP Fri Sep 28 08:37:09 EDT 2018 x86_64
PHP: Linux 7.1.23 en_US.UTF-8
PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes
WordPress: 4.9.8 en_US UTF-8
WordPress Theme: Blox Theme
WordPress Plugins: VaultPress, Redux Framework, Ivory Search, Admin Custom Login, Akismet Anti-Spam, Architect – a DIY content block builder (Premium), BoldGrid Gallery, BoldGrid Inspirations, BoldGrid Staging, Duplicate Post, Easy Shortcode Buttons, Formidable Forms Pro, Formidable Forms, HTML5 Responsive FAQ, Inline Google Spreadsheet Viewer, Jetpack by WordPress.com, Page Links To, Post and Page Builder Premium, Post and Page Builder, Post SMTP, ShiftNav Pro – Responsive Mobile Menu, NextScripts: Social Networks Auto-Poster, Tabby Responsive Tabs, Yoast SEO, WP Maintenance Mode, WPS Hide Login
WordPress wp_mail Owner: /home/petert11/public_html/wp-includes/pluggable.php
WordPress wp_mail Filter(s): wp_staticize_emoji_for_email
Postman: 1.9.5
Postman Sender Domain (Envelope|Message): peterthedj.com | peterthedj.com
Postman Prevent Message Sender Override (Email|Name): No | No
Postman Active Transport: SMTP (smtp:tls:oauth2://smtp.gmail.com:587)
Postman Active Transport Status (Ready|Connected): Yes | Yes
Postman Deliveries (Success|Fail): 305 | 7I can still get email from contact form submissions, but the body of the email is just the raw HTML code from the form results, rather than rendering the HTML as it did before. And they aren’t showing up in the Post SMTP log.
I’m stumped as to what could be causing this error, I can’t find anything else that is declaring the
wp_mail
function.
- The topic ‘Says wp_mail already declared’ is closed to new replies.