Fatal error: Cannot redeclare getcountry - 2 signup modules on 1 page

More
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 ?

Please Log in or Create an account to join the conversation.

More
02 Aug 2011 13:52 #1856 by pete
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:
Code:
if( !function_exists('getCountryDropdown') ){
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

Please Log in or Create an account to join the conversation.

More
02 Aug 2011 14:46 #1860 by Yodeho
Cool, Its working again :) Thx for the fix!

Please Log in or Create an account to join the conversation.

  • David B
  • Visitor
  • Visitor
10 Jan 2012 04:35 #2184 by David B
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##

Please Log in or Create an account to join the conversation.

More
21 Sep 2012 16:16 #2328 by decommunicatieman
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?

Please Log in or Create an account to join the conversation.