Have I searched the forum before posting? Yes
Have I read the Troubleshooting Wizard before posting? Yes
Have I read the documentation before posting? Yes
Joomla! version: 1.5.23
PHP version: 5
MySQL version: 5
Admin Tools Professional version: 2.0.5
Description of my issue:
I installed the PHP PECL extension GeoIP (http://php.net/manual/en/book.geoip.php) and that caused the following error:
PHP Fatal error: Cannot redeclare geoip_country_code_by_name() in /administrator/components/com_admintools/helpers/geoip.php on line 376
Once I fixed that issue, the next function also caused a problem so all I had to do was wrap the functions in a function_exists check, like this:
if (!function_exists('geoip_country_code_by_name'))
{
function geoip_country_code_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_CODES[$country_id];
}
return false;
}
}
if (!function_exists('geoip_country_name_by_name'))
{
function geoip_country_name_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_NAMES[$country_id];
}
return false;
}
}
That fixed the Fatal Error issue.