cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Post

bnard - Guest

5:45 am - February 19, 2008

Please replace the ??? with your data!

  • Your URL: http://???
  • The browser used: ie/ff
  • cforms version: 7.51
  • Your Wordpress version:2.3.3

[desc]:
_ i got this error when trying to activate cfrom plugin

Plugin could not be activated because it triggered a fatal error.


Fatal error: Cannot redeclare class phpmailer in /home//public_html/zeta/wp-content/plugins/contactforms/phpmailer/class.phpmailer.php on line 34

what is causing this?


Oliver - Admin

7:15 am - February 19, 2008

posts 3906

You apparently already use the PHPmailer code (via some other plugin I suppose).

Do you have to use the SMTP feature of cforms? If yes, you may need to make a few code adjustments.

justin - Guest

12:47 am - March 10, 2008

I am having the same problem.  I do not need to use the SMTP feature.  How can I get the plugin activated and working?

Oliver - Admin

7:02 am - March 10, 2008

posts 3906

I am having the same problem.

What problem?

'I do not need to use the SMTP feature. ' 

Then you shouldn't configure it.

How can I get the plugin activated and working?

Upload the plugin folder and go to "Pllugins" in your WP admin panel, click "Activate".

justin - Guest

5:41 pm - March 12, 2008


Fatal error: Cannot redeclare class phpmailer in /home//public_html/zeta/wp-content/plugins/contactforms/phpmailer/class.phpmailer.php on line 34


I am using this plugin on about 10 sites, I know how to install a plugin.  I had the plugin installed and when I upgraded I started getting this error message.  You mentioned to the person who started this thread that

Do you have to use the SMTP feature of cforms? If yes, you may need to make a few code adjustments.

I didnt configure SMTP, and it is not configured for any of my plugins.


Thank you for your help.


Oliver - Admin

6:52 pm - March 12, 2008

posts 3906

If you don't use a WP SMTP enabling plugin on this particaul installation, it should not come up with this error, as it would never try to load the phpmailer files in the first place.

Can you double check if SMTP is enabled in cforms?

Are you using SMTP on the blog?

If none is true, I drawing a blank as to why you're getting the error. Since I'm about to finish v8.0 (WP2.5 compliance) I'm happy to send you the latest via email which includes some changes in this area.

Mark - Guest

5:46 am - April 17, 2008

Hello,

I am also getting the error as I have PHPMailer on my site already so I can send all mails by SMTP. (mail() is not supported)


You mentioned a few code adjustments - could you elaborate please? As in would there be much involved?


Great work on the plugin.

Thanks,

M

Oliver - Admin

6:53 am - April 17, 2008

posts 3906

With v8.2 there should not be the need to adjust cforms anymore.

How did you deploy PHPMailer before? Are you using wpPHPMailer, or simply WP SMTP?

The later I know for certain to work fine side by side with cforms, it makes use of the WP core phpmailer scripts (versus wpPHPMailer which I think adds its own PHPMailer scripts ontop).

What's you URL?

Mark - Guest

2:01 pm - April 17, 2008

Hello,

I am using wpPHPMailer and yes it does add its own copy of the scripts. I will change to WP SMTP and see how I get on - this seems like a much better choice if it uses what WP already has.

Thanks for the very speedy response!

M


Mark - Guest

2:20 pm - April 17, 2008

Hello,

I removed phpMailer and added WP SMTP and cforms is working like a charm now. Thanks for your help.


M

Oliver - Admin

8:09 pm - April 17, 2008

posts 3906

Great! And thanks for the follow-up.

Add a New Topic Reply to Post


Reply to Topic: fatal error
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 5 + 7        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)