WordPress.org

Ready to get started?Download WordPress

Forums

White Label CMS
[resolved] Conflict with wpMandrill plugin (8 posts)

  1. andamira
    Member
    Posted 1 year ago #

    When using this plugin with wpMandrill it gives the following error:

    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.

    Could you please put in contant with wpMandrill dev team to solve this issue?

    This is the topic in wpMandrill support.

    http://wordpress.org/extend/plugins/white-label-cms/

  2. Ovidiu
    Member
    Posted 1 year ago #

    I'm having the very same conflict.

  3. srumery
    Member
    Posted 1 year ago #

    I see the conflict as well. Any reason why White Label CMS would have anything to do with wp_mail?

  4. mvdesign
    Member
    Posted 1 year ago #

    We are also getting this exact same conflict. We would love to use both White Label CMS and Mandrill. Has any one got any ideas? Great if this could be resolved. Thanks.

  5. Gary Darling
    Member
    Posted 1 year ago #

    I did some testing and found the culprit - edit out this line of code in White Label CMS (line 26 in wlmcs-plugin.php) and now the two plugins happily co-exist (at least on my localhost they do):

    if(!function_exists('wp_get_current_user')) {
        include(ABSPATH . "wp-includes/pluggable.php");
    }

    One of the commenters on the wpMandrill support page posted the fix.

    This line of code appears to be checking the existence of a native WP function, wp_get_current_user(), and if it doesn't exist it includes the file that function is defined in.

    From what I can see, wp-includes/pluggable.php is a core file, and should get loaded by wordpress itself, so I'm not sure why WLMCS needs to check for it. It might be better to use an action hook like 'plugins_loaded' to accomplish whatever goal is desired.

  6. srumery
    Member
    Posted 1 year ago #

    That's good to hear Gary. Thank you for posting!

  7. Video User Manuals
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks guys, this will be removed in the next version.

  8. andamira
    Member
    Posted 11 months ago #

    Good news! thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic