forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: MatCat on April 08, 2008, 02:11:21 am

Title: [Solved]: Error when trying to leave a comment
Post by: MatCat on April 08, 2008, 02:11:21 am
Get this error when trying to leave a comment on an image:
Fatal error: Cannot redeclare class PHPMailer in C:\Inetpub\vhosts\nepageocachers.org\httpdocs\gallery\include\mailer.inc.php on line 114

This is a clean install of coppermine, tried both php 4.4.7 and 5.2.3, as well as sendmail and smtp options (Not sure why phpmail is not supported here...)

Bridged to Joomla 1.5

Host is using IIS 6 (as is obvious from the directory listing above)  Sofar everything else seems to work however :).
Title: Re: Error when trying to leave a comment
Post by: Joachim Müller on April 08, 2008, 07:22:03 am
Post a link to your gallery and a non-admin test user account with privileges to send ecards.
Title: Re: Error when trying to leave a comment
Post by: MatCat on April 08, 2008, 03:22:21 pm
http://www.nepageocachers.org/gallery/

U/P: Testy/testing
Title: Re: Error when trying to leave a comment
Post by: Nibbler on April 08, 2008, 04:28:20 pm
Looks like Joomla also uses PHPMailer. Rename Coppermine's version in include/mailer.inc.php
Title: Re: Error when trying to leave a comment
Post by: MatCat on April 08, 2008, 04:34:14 pm
Looks like Joomla also uses PHPMailer. Rename Coppermine's version in include/mailer.inc.php
Not quite sure what I am renaming... rename the $mail objects?
Title: Re: Error when trying to leave a comment
Post by: MatCat on April 08, 2008, 04:37:34 pm
Nevermind I see what you ment now, renamed the PHPMailer class, worked for not getting the error :) Thanks