- Posts: 15
- Thank you received: 0
Fatal error: Cannot redeclare class MCAPI
18 Oct 2010 12:54 #322
by marcoo
Fatal error: Cannot redeclare class MCAPI was created by marcoo
We installed joomailer. When a user logs in, he gets following error:
we have mod_mailchimp2 module also running. See more here
eepurl.com/Aw-
Code:
Fatal error: Cannot redeclare class MCAPI in /home/admin/domains/sitename.com/public_html/dirname/modules/mod_mailchimp2/MCAPI.class.php on line 3
eepurl.com/Aw-
Please Log in or Create an account to join the conversation.
18 Oct 2010 16:03 #326
by chris
Replied by chris on topic Fatal error: Cannot redeclare class MCAPI
There is a conflict with another module you have installed as the MCAPI file is being included more than once.
Most likely you will have to edit that mod_mailchimp2 module so that the point where it includes this file looks something like this:
Most likely you will have to edit that mod_mailchimp2 module so that the point where it includes this file looks something like this:
Code:
if(!class_exists('MCAPI')) {
require_once(JPATH_SITE.'/modules/mod_mailchimp2/MCAPI.class.php');
}
Please Log in or Create an account to join the conversation.
18 Oct 2010 16:18 #328
by marcoo
Replied by marcoo on topic Fatal error: Cannot redeclare class MCAPI
indeed: line 70 of file send_to_mc.php
find
replace with
and also mod_mailchimp2.php line 107
replace with
find
Code:
require_once('MCAPI.class.php');
Code:
if(!class_exists('MCAPI')) { require_once(JPATH_SITE.'/modules/mod_mailchimp2/MCAPI.class.php'); }
and also mod_mailchimp2.php line 107
Code:
require_once('MCAPI.class.php');
Code:
if(!class_exists('MCAPI')) { require_once(JPATH_SITE.'/modules/mod_mailchimp2/MCAPI.class.php'); }
Please Log in or Create an account to join the conversation.
joomlamailer uses cookies!
This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. We are not using cookies for marketing purposes. For more information visit our privacy policy
I agree
Copyright 2010 freakedout.de - All Rights Reserved
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.