• Resolved 2chicks

    (@2chicks)


    I am running Gravity Forms. I installed this plugin and get this: “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.”

    Where do I go from here?

Viewing 12 replies - 1 through 12 (of 12 total)
  • A.Tariq

    (@arsalantariq)

    hi @2chicks

    Hope you are doing good.

    Can you share the screenshot of this issue and also share diagnostic logs also.

    Thanks

    Thread Starter 2chicks

    (@2chicks)

    There are no logs. I just installed it and it says that I cannot use it due to a conflict. See this https://www.dropbox.com/scl/fi/ya3vud5jnt5rfmkjxo2pg/Line-100-SMPT-Plugin-Issue.docx?dl=0&rlkey=tcrf84d339w0y5r8rfcwfqwgh

    Thread Starter 2chicks

    (@2chicks)

    Anything?

    A.Tariq

    (@arsalantariq)

    Hi @2chicks

    Try to change the Mail type to PostSmtp for details please see the below screenshot.

    https://www.awesomescreenshot.com/image/24167035?key=58898054d282b9c95d0e58ab58242ba1

    Also, I am unable to reproduce the mentioned issue on our staging site. Maybe its theme or some other plugin is conflicting with the Post SMTP plugin Can you change the theme to WordPress default 2022 or deactivate the plugins one by one and check if the issue still persists or not.

    Thanks

    Thread Starter 2chicks

    (@2chicks)

    Do I need to do something with this code in the WP Config?

    /** Sets up WordPress vars and included files. */
    
    require_once(ABSPATH . 'wp-settings.php');
    
    function wp_mail() {}
    A.Tariq

    (@arsalantariq)

    @2chicks

    Seems like the issue is in your WP Config file, is there any other SMTP plugin you installed on your website? also, did you try to change Mailer Type?

    Thanks

    Thread Starter 2chicks

    (@2chicks)

    At one time I had contact form 7 installed, but not since January when I deinstalled it and added gravity forms. Ever since gravity forms it won’t send mail. I can connect to that mailserver from the hosting server so I know there’s no blocking on our end or their end. But not through the site’s WordPress / SMTP plugin.

    A.Tariq

    (@arsalantariq)

    @2chicks

    did you try to change the Mail type to PostSmtp or PHP mailer?

    Thread Starter 2chicks

    (@2chicks)

    There was a line of code in the WP Config file that was put in by Contact Form 7 previously. Deinstalling the plugin didn’t remove this code. You may want to put this in your notes when people are running into this issue. This needs to be removed and then the Wizard run again. function wp_mail() {}

    @2chicks

    Thank you for your clarification, so you remove that code, and the issue is fixed now?

    Thread Starter 2chicks

    (@2chicks)

    Yes. So if you get people complaining about this, ask them if they ever had contact form 7 and to go look for that code in the config file. Removing it fixed it.

    @2chicks

    Sure,

    Thank you

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘wp_mail declared by another plugin/theme’ is closed to new replies.