WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
Mandrill: wp_mail has been declared by another process or plugin, so you won't b (2 posts)

  1. Joseph G
    Member
    Posted 3 months ago #

    I'm running wpMandrill version 1.33 and I keep getting the following error since upgrading to WP 3.9:

    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.

    Any ideas?

    https://wordpress.org/plugins/wpmandrill/

  2. dianadevargas
    Member
    Posted 3 months ago #

    Hi,

    I have the same problem in WP version 3.8 and now in 3.9.

    You can do this changes in wpmandrill.php

    from line 54

    if( function_exists('wp_mail') ) {
        $r = new ReflectionFunction('wp_mail');
        $original = ($r->getFileName() === ABSPATH . WPINC . '/pluggable.php');
         if (!$original) {
            self::$conflict = true;
            add_action('admin_notices', array(__CLASS__, 'adminNotices'));
            return;
        }
    }

    also replace :

    if( self::isConfigured() ) {

    with

    if( self::isConfigured() && !function_exists('wp_mail') ) {

    The plugin will work perfectly after that.

Reply

You must log in to post.

About this Plugin

About this Topic