Did you ever get an answer to this? I am experiencing the same thing.
No I’ve had no response from the plugin author and I’ve not found a suitable alternative so far. I’m stuck with email that works some of the time which is less than ideal!
Hi,
Sorry I didn’t see that thread.
The plugin deactivates when the SES or Mail config changes, or wether another plugin does rewrite the wp_mail() function.
First thing would be to activate the log function of the plugin, wait for it to deactivate, then look at the log file. If it deactivates itself, there will be a reason in the wp-ses logs.
I’ve switched the logs on and they contain this error
1484114165 ERROR wp_mail override by another plugin !!
1484114165 Then deactivating plugin
1484114165 wp_mail already defined in /home/sitename/public_html/wp-includes/pluggable.php
I really need to sort this problem out as mail sent through the default WordPress function doesn’t get delivered most of the time which is why I need Amazon SES in the first place!
-
This reply was modified 9 years, 5 months ago by
damster.
So, that’s not another plugin trying to rewrite wp_mail, that’s a poorly written plugin that includes or requires pluggable.php
That breaks all pluggable functions for all other plugins.
Find out which other plugin you use that mentions “pluggable.php” in the source code, and you’ll find the culprit.
Nothing I can do on my side, it’s another code that breaks a core WP functionnality.
Is there an easy way of doing this or is it a case of going through the code for each manually?
If you’ve got access to a shell, it’s a grep away.
Or you can download your plugins directory and do a local search within the files.
If you don’t know how to do a search within the files,
You can also use the contact form on the wp-ses.com website, then send me the zip of your plugin directory and I’ll search for you.
Plugin “String Locator” may be of help.
Thanks very much for your help I’ll give it a try 🙂
I found that two plugins mention pluggable.php in their code, Wordfence and WP Fastest cache. Of the two of them only wordfence uses the mail function (to send alerts) as far as I can tell.
I have tried disabling the alerts for now to see if this affects the WP SES deactivation issues. I’ll check back here with the result.
In fact, it doesn’t matter wether or not the mail function is used.
The inclusion of pluggable.php alone kills all pluggable functionnality.
pluggable.php never shoud be included by a plugin.
It’s loaded by te WP core at the required level.
Both these plugins are then potentially breaking several other’s functionnality.
You can alert the authors of these plugins and ask them to fix.