• I am getting this Fatal Error with WordPress 3.0.1. whenever I use a plugin that sends out an email from the front end of the blog:

    Fatal error: Cannot redeclare class PHPMailer in /home/******/public_html/******/wp-includes/class-phpmailer.php on line 34

    Line 34:
    class PHPMailer {

    The version # for the class.PMPMailer.php file is v2.0.4.

    I have tried 2 different plugins and got this error when processing forms in each one. I have WP Database Manager plugin installed that sends out an email with a db-backup file with no problems; and a contact form that sends user input information to the wp admin email address with no problems.

    I have searched on Google and WP Support and tried a couple suggestions (after making a backup copy of the original phpmailer file) with no luck. I am not a php guru but I understand it somewhat.

    Does anyone have an idea what might be causing this? Is it the plugin files that I need to tweak or the phpmailer file? And how in either case?

    Thanks for the help in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter nikeman22

    (@nikeman22)

    Ok, now this is really beginning to concern me because I just finished testing the registration and I am getting this same error on registrations as well. Registrations are essential for me to invoice my clients.

    I really need some help getting this resolved as soon as possible.

    Moderator James Huff

    (@macmanx)

    Thread Starter nikeman22

    (@nikeman22)

    James,

    I installed this plugin and when I clicked “Settings” to configure it, I got the Fatal error in the admin backend..

    Thread Starter nikeman22

    (@nikeman22)

    I did a search for in my theme files and found these lines in the php file that processes the contact form:

    require_once "scripts/class.phpmailer.php";
      $mail = new PHPMailer();

    I’m positive that this is causing the conflict because I have no problem using the form that came with the theme. I also tried activating the default Twenty Ten WP theme and had no problem registering or processing mail.

    I’m no php guru but I am knowledgeable enough to make the necessary edits if needed.

    Hi,
    Having the exact same problem with WordPress 3.0.3 site and Fast Secure Contact Forms??

    Still not seeing any responses here with possible solutions??

    Anybody else having this issue and have you found any way to correct for it.

    Definitely is problematic and is swaying my decision to build a new project with Drupal instead of WordPress. I am new WordPress (very familiar with Drupal) and I was hoping to create a charitable site using WordPress, but custom forms are integral for the project and if I can’t navigate around this problem then I suppose WordPress isn’t going to be an option. Too bad because I have been really blown away by the clean, versatility and functionality of WP to date.

    Any help would really be appreciated.

    ~?Do you have installed… The Mee news plugin? ?Or anything like that? Lately they are giving lots of problems with this guy.~

    I do actually. I have thinned out my list of plugins and I am going to wipe the server clean with a fresh WP install. Perhaps I will omit Meenews and see what happens.

    Thanks for your reply.

    ~Try erasing the mee news out from the server. Enter and see if it works… I can almost assure you it will. ??

    You are welcome.~

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error: Cannot redeclare class PHPMailer’ is closed to new replies.