- Posts: 2
- Thank you received: 0
Fatal error: Cannot redeclare getcountry - 2 signup modules on 1 page
02 Aug 2011 00:45 #1854
by Yodeho
joomlamailer version: 1.7.2
Joomla! version: 5.1.41-3ubuntu12.10
PHP version: 5.2.4-2ubuntu5.17
MySQL version: 5.1.41-3ubuntu12.10
Jomsocial and K2 are installed + some more
Today I upgraded to Joomlamailer version: 1.7.2. But that resulted at first in a HTTP Error 500 (Internal Server Error): on my homepage. I disabled one of the 2 mailchimpsignup modules and everything was working fine again. Then I clicked to another page (again with 2 mailchimpsignup modules) and then I got the following error: Fatal error: Cannot redeclare getcountrydropdown() (previously declared in /home/vhosting/e/vhost0046344/domains/beoordelingen.cruiseaanbiedingen.nl/htdocs/www/modules/mod_mailchimpsignup/tmpl/default.php:426) in/home/vhosting/e/vhost0046344/domains/beoordelingen.cruiseaanbiedingen.nl/htdocs/www/modules/mod_mailchimpsignup/tmpl/default.php on line 686
Any suggestions how to fix this ?
Joomla! version: 5.1.41-3ubuntu12.10
PHP version: 5.2.4-2ubuntu5.17
MySQL version: 5.1.41-3ubuntu12.10
Jomsocial and K2 are installed + some more
Today I upgraded to Joomlamailer version: 1.7.2. But that resulted at first in a HTTP Error 500 (Internal Server Error): on my homepage. I disabled one of the 2 mailchimpsignup modules and everything was working fine again. Then I clicked to another page (again with 2 mailchimpsignup modules) and then I got the following error: Fatal error: Cannot redeclare getcountrydropdown() (previously declared in /home/vhosting/e/vhost0046344/domains/beoordelingen.cruiseaanbiedingen.nl/htdocs/www/modules/mod_mailchimpsignup/tmpl/default.php:426) in/home/vhosting/e/vhost0046344/domains/beoordelingen.cruiseaanbiedingen.nl/htdocs/www/modules/mod_mailchimpsignup/tmpl/default.php on line 686
Any suggestions how to fix this ?
Please Log in or Create an account to join the conversation.
02 Aug 2011 13:52 #1856
by pete
Replied by pete on topic Fatal error: Cannot redeclare getcountry - 2 signup modules on 1 page
Hi,
Thanks for reporting this. I'm not sure how I could miss that one
To fix it please edit the file /modules/mod_mailchimpsignup/tmpl/default.php
At line 425 (above "function getCountryDopdown") add this line:
At the very end of the file add a closing curly bracket } (line 687).
This will be fixed in version 1.7.3
Kind regards,
Pete
Thanks for reporting this. I'm not sure how I could miss that one
To fix it please edit the file /modules/mod_mailchimpsignup/tmpl/default.php
At line 425 (above "function getCountryDopdown") add this line:
Code:
if( !function_exists('getCountryDropdown') ){
This will be fixed in version 1.7.3
Kind regards,
Pete
Please Log in or Create an account to join the conversation.
02 Aug 2011 14:46 #1860
by Yodeho
Replied by Yodeho on topic Fatal error: Cannot redeclare getcountry - 2 signup modules on 1 page
Cool, Its working again Thx for the fix!
Please Log in or Create an account to join the conversation.
- David B
- Visitor
10 Jan 2012 04:35 #2184
by David B
Replied by David B on topic Fatal error: Cannot redeclare getcountry - 2 signup modules on 1 page
I dont see the code referenced in your description I've attached my default php
Fatal error: Cannot redeclare getcountrydropdown() (previously declared in /home/content/80/8628180/html/modules/mod_mailchimpsignup/tmpl/default.php:426) in /home/content/80/8628180/html/modules/mod_mailchimpsignup/tmpl/default.php on line 686
##text##
Fatal error: Cannot redeclare getcountrydropdown() (previously declared in /home/content/80/8628180/html/modules/mod_mailchimpsignup/tmpl/default.php:426) in /home/content/80/8628180/html/modules/mod_mailchimpsignup/tmpl/default.php on line 686
##text##
Please Log in or Create an account to join the conversation.
- decommunicatieman
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
21 Sep 2012 16:16 #2328
by decommunicatieman
Replied by decommunicatieman on topic Fatal error: Cannot redeclare getcountry - 2 signup modules on 1 page
I had the same problem and added the code, which solved it. Thanks for that. But... now on the site, at the article this message shows:
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/rdta.nl/httpdocs/joomla25/modules/mod_mailchimpsignup/tmpl/default.php on line 680
What need I to do?
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/rdta.nl/httpdocs/joomla25/modules/mod_mailchimpsignup/tmpl/default.php on line 680
What need I to do?
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.