WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
[resolved] Mandrill: wp_mail has been declared by another process (20 posts)

  1. tclydesdale
    Member
    Posted 1 year ago #

    Hi there,

    First post on the WordPress.org support forums, so sorry if I've missed something.

    I receive the following error when I activate the Mandrill plugin:
    Mandrill: wp_mail has been declared by another process or plugin, so you won't be able to use Mandrill until the problem is solved.

    I'm using Mandrill 1.20 and I have narrowed the error down to Cart66 Professional 1.5.0.2 (being the other process using wp_mail).

    Anyway, I was unsure who I should be asking about a resolution to this, so I figured why not both (Mandrill and Cart66). This way I can help other people find a resolution to this problem quicker in the future.

    Any advice would be appreciated, I'll post back any information I receive from Cart66 regarding this.

    Thanks!

    -Timbo

    http://wordpress.org/extend/plugins/wpmandrill/

  2. MC_Will
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I think it has nothing to do with Cart66. I've used them together with no problem at all.

    It seems that you have another plugin/process installed that is overriding the wp_mail function so wpMandrill can't (yeah, they are that jealous!).

    I'd recommend you to deactivate all your plugins but wpMandrill... and perform a password reset in your wp blog. if it works, start activating your plugin one at a time until you find the culprit.

    If wpMandrill didn't work even with no other plugin activated, probably your theme has a process running that override the wp_mail function.
    Try activating a default theme.

    If none of this work, can you tell me a little bit about your installation? OS, Server, WP Version, where is your wp hosted? ...

  3. benjaminprojas
    Member
    Posted 1 year ago #

    MC_Will,

    I am one of the developers of Cart66 and I do believe that the conflict is with Cart66. In our latest version of Cart66, we do override the default wp_mail function to enable us to send HTML email receipts. (A new feature for this version). The reason we do this is because WordPresses wp_mail function by default does not allow you to send emails in a multipart format which is essential for how our emails work.

    If there is a way that we can communicate about how to get our plugins working together, that would be awesome.

    Let me know what you think,

    -Benjamin

  4. MC_Will
    Member
    Plugin Author

    Posted 1 year ago #

    Oh I see... Seems that I need to update Cart66 in my box now :)

    Sure, submit a request on http://help.mandrill.com/ and ask them to forward it me.

  5. benjaminprojas
    Member
    Posted 1 year ago #

    Will,

    I sent in a support request, but didn't get any email yet. Not sure if it worked as it should.

  6. MC_Will
    Member
    Plugin Author

    Posted 1 year ago #

    I got it. Thanks.

  7. Biswajit Ghosh
    Member
    Posted 1 year ago #

    Hi all i have the same problem. I have an admin notice like
    "Mandrill: wp_mail has been declared by another process or plugin, so you won't be able to use Mandrill until the problem is solved."

    when i deactivate brightcove plugin this works fine but i think there is no connection between mandrill and brightcove...

    Can you have some suggestion for this problem..

    i want to keep active both plugins.

    thanks...

  8. tclydesdale
    Member
    Posted 1 year ago #

    Hi Biswajit,

    I was lucky enough that both development teams got together and fixed the problem (Cart66 released a fix, I presume since their plugin doesn't solely depend on email).

    All I can suggest is to install an SMTP plugin for WordPress and use the Mandrill SMTP settings (though I'm not sure they won't demand the same "wp_mail" declaration...).

    Else, if you have you own server like Amazon's EC2, then perhaps you could configure the local sendmail to use Mandrill's settings?

    Finally, speak nicely to the makers of brightcove, as I presume they could implement a fix just like Cart66 did in my case.

    Good luck with it!

    -Timbo

  9. Biswajit Ghosh
    Member
    Posted 1 year ago #

    Thanks Tclydedale,

    I have already install wp mail smtp and also configure it with mandrill SMTP settings. But still it not work. :-(

    I think mandill demands the same wp_mail declaration because...

    the notice code execute from here...

    if( function_exists('wp_mmail') ) {
                self::$conflict = true;
                add_action('admin_notices', array(__CLASS__, 'adminNotices'));
    			return;
    }
    
            self::$conflict = false;
    		if( self::isConfigured() ) {
    
    			function wp_mmail( $to, $subject, $message, $headers = '', $attachments = array() ) {
    				try { ............

    I don't know what to do....??

    please help..

  10. MC_Will
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Biswajit Ghosh,

    If you are using SMTP to send your email, you should deactivate wpMandrill. They can't live together.

  11. Biswajit Ghosh
    Member
    Posted 1 year ago #

    Hey Will I understand what you eill say...

    but i want to do something like different to choose mandrill template from wp-admin and then send mail with the template via mandrill.

    I think If i deactivate wpmandrill plugin then email-template will not work.

    I hope i make you understand...

  12. MC_Will
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Biswajit Ghosh,

    I understand. I also understand that when you deactivate BrightCove, everything works as you want.

    Problem is BrightCove and wpMandrill are "fighting" to take control of a WordPress function that can only be "owned" by one process: Either BrightCove, Mandrill, or WordPress itself.

    There's no way both plugins can work together. Cart66 had the same problem and we worked together so both plugins could work together. Probably the same solution could be adopted by the developers of BrightCove.

  13. skizzy203
    Member
    Posted 1 year ago #

    This plugin also gives the same conflict error in confrontation with White Label CMS.

    http://www.videousermanuals.com/white-label-cms/

    http://wordpress.org/support/plugin/white-label-cms

    MC_Will, maybe you can reach out to VideoUserManuals team and share the solution that you and Cart 66 were able to come up with.

    I'd like to get more in depth with Mandrill, but not if I have to sacrifice using White Label CMS. I use that plugin on all of my deployments.

  14. andamira
    Member
    Posted 1 year ago #

    I am in the same situation as skizzy. Deactivated all the plugins and found the conflicting one. White Label CMS. I also use that plugin for all my deployments.

  15. andamira
    Member
    Posted 1 year ago #

    Created a topic in White Label CMS support forum. >> Link

  16. Biswajit Ghosh
    Member
    Posted 1 year ago #

    Hi andamira,

    I found the problem, because there was a file include wp-includes/pluggable.php into their wp-mandrill plugin to use all the functionality like current_user_can('administrator') etc. , I remove the include portion of wp-includes/pluggable.php and change the wp function current_user_can('administrator') with is_admin() .

    I think white-label-cms plugin also have includes some wp core file, that is execute twice. Try by removing it.

    Hope it help.

  17. anchantw
    Member
    Posted 10 months ago #

    Hi, there

    I also have a same problem, and I don't know what process or plugin have been declared by now.

    To solve this problem, I checked email header.

    Received-SPF: Pass (hoge1.com: domain of bounce-hogehoge@hoge.hoge.mandrillapp.com designates mandrill host IP as permitted sender ) client-ip: mandrill host IP

    Above headder, I sent from mandrill plugin "Send a test email using these settings". this test email secceeded from mandrill.

    Received-SPF: None (hoge1.com: domain of hoge2@serverhostname.com.com does not designate permitted sender hosts ) client-ip: server host IP

    Above header, I sent from contact form 7 page I set up. This unsucceeded email never used mandrill.

    I don't understand what point(config file or database) I should check.

    Please advise me what points I should check to solve this problem.

    Thank you.

  18. MC_Will
    Member
    Plugin Author

    Posted 10 months ago #

    Whenever wpMandrill can't send an email through Mandrill it leaves a trace in the log file. That should be your first stop.

    If you can't see any trace there, then the sending process (contact form 7 or whatever) is probably using other means to send its emails instead of the standard wp_mail function. In these cases I'd try to contact the developers of such plugins.

    I hope it helps,
    Will

  19. anchantw
    Member
    Posted 10 months ago #

    I'm sorry to be late to report you.

    I tried to check what plugins make problem and found a trouble plugin.

    That plugin is DigitalAccessPass LiveLinks!

    http://www.digitalaccesspass.com/

    Please try to contact thta developers and solve this problem.

    Thank you.

  20. MC_Will
    Member
    Plugin Author

    Posted 10 months ago #

    Him

    I'd recommend you to contact the developers and make them use the standard mailing function of WordPress, wp_mail.

    All the best,
    Will

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic