Author Topic: [Solved] Fatal error: Cannot redeclare geoip_country_code_by_name() in  (Read 21454 times)

0 Members and 1 Guest are viewing this topic.

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
If any one have the same problem, (Fatal error: Cannot redeclare geoip_country_code_by_name() in)

Use this topic for resolve your problem  :wink:
« Last Edit: December 19, 2010, 08:05:24 AM by MrAndrew »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Blank admin index page...
« Reply #1 on: December 17, 2010, 12:39:25 AM »
In global.php find:
error_reporting(E_ERROR E_WARNING E_PARSE);


insert below:
error_reporting(E_ALL);
ini_set("display_errors"true);

see if any errors shows.
If not, check server's error logs.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: Blank admin index page...
« Reply #2 on: December 17, 2010, 06:40:10 AM »
This is logs... But nothing was changed, and working done! Very strange.

Notice: Undefined index: user_skype in /home/users2/d/drandrew/domains/skyphotos.ru/includes/db_field_definitions.php on line 117

Notice: Undefined index: profile_hits in /home/users2/d/drandrew/domains/skyphotos.ru/includes/db_field_definitions.php on line 118

Notice: Undefined variable: config in /home/users2/d/drandrew/domains/skyphotos.ru/includes/sessions.php on line 335

Notice: Undefined variable: quote in /home/users2/d/drandrew/domains/skyphotos.ru/includes/functions.php on line 2168

Fatal error: Cannot redeclare geoip_country_code_by_name() in /home/users2/d/drandrew/domains/skyphotos.ru/includes/geoip.inc on line 390

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Blank admin index page...
« Reply #3 on: December 17, 2010, 02:06:18 PM »
Nothing happens by itself, something did change.
The first two lines I could assume related to missing lines in main.php language file, the rest of them - no clue
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: Blank admin index page...
« Reply #4 on: December 18, 2010, 09:30:20 AM »
Problem solved. It`s depend on hosting changes...

For resolve this problem, uncomment this path in you geoip.inc

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;
}

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;
}
« Last Edit: December 19, 2010, 08:03:38 AM by MrAndrew »