Cannot redeclare class phpmailer

Discussion in 'Troubleshooting' started by keliix06, Mar 20, 2007.

  1. keliix06

    keliix06 New Member

    Joined:
    Mar 20, 2007
    Messages:
    1
    I'm working on setting up amember and I'm getting this error when trying to login. I'm using it along side Joomla, which also has a phpmailer class, so what I've done is renamed the PHPMailer class (and it's associated calls) in amember to PHPMailer2. Then I get "Cannot redeclare class phpmailer2" so it's not a conflict with Joomla.

    I only find 2 instances of new PHPMailer() in the script, so I commented one out, still getting the same error. It looks like multiple files might be calling the mail_customer function in common.inc.php during the login process.

    If I comment out the new PHPMailer() line from that script it changes to an undefined function error, so that is where the conflict is occuring. Any ideas on what to check for?

    Thanks
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021

Share This Page