0 Members and 1 Guest are viewing this topic.

After installation, only white screen
« on: February 02, 2017, 09:01:16 PM »
Hi! Once installed white screen comes on after installation, this error message:

Fatal error: Cannot redeclare geoip_country_code_by_name() in /home/mindenha/domains/mydomain.hu/public_html/geoip/geoip.inc on line 346

*

Pharg

  • *****
  • 3,156
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: After installation, only white screen
« Reply #1 on: February 02, 2017, 09:13:06 PM »
Hi! Once installed white screen comes on after installation, this error message:

Fatal error: Cannot redeclare geoip_country_code_by_name() in /home/mindenha/domains/mydomain.hu/public_html/geoip/geoip.inc on line 346

Hi csapozolika,

What version osDate was installed on to what version PHP ?
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: After installation, only white screen
« Reply #2 on: February 02, 2017, 09:16:08 PM »
Hi! Once installed white screen comes on after installation, this error message:

Fatal error: Cannot redeclare geoip_country_code_by_name() in /home/mindenha/domains/mydomain.hu/public_html/geoip/geoip.inc on line 346

Hi csapozolika,

What version osDate was installed on to what version PHP ?

osDate Evo v1.2, PHP Version 5.6.16

*

Pharg

  • *****
  • 3,156
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: After installation, only white screen
« Reply #3 on: February 02, 2017, 09:18:51 PM »
Hi csapozolika,

Very strange, can I have your FTP details in a PM please ?
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

CBG

  • *****
  • 960
    • osDate Forum
  • osDate Version: osDateEvo v1.3
Re: After installation, only white screen
« Reply #4 on: February 03, 2017, 09:27:46 AM »
I had this error once with a hosting provider (can't remember which one).
I believe it was due to the hosting provider already have the geoip loaded into PHP and, when osDate tries to load it, it gives the error, as it was already loaded.

See my post below for the answer I did at the time.
« Last Edit: February 03, 2017, 09:46:20 AM by CBG »
Regards,
CBG (Garry)
PHP: 5.x and 7.x | MySQL: 10.1.31-MariaDB-cll-lve

*

CBG

  • *****
  • 960
    • osDate Forum
  • osDate Version: osDateEvo v1.3
Re: After installation, only white screen
« Reply #5 on: February 03, 2017, 09:44:58 AM »
Hi,

Try this for osDate Evo 1.2
Upload geoip.inc into geoip folder

The changes are
Open:  geoip/geoip.inc

Find:
Code: [Select]
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;
}


Change to:
Code: [Select]
if (function_exists("geoip_country_code_by_name")) {
// Do nothing
} else {
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")) {
// Do nothing
} else {
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;
}
}
Regards,
CBG (Garry)
PHP: 5.x and 7.x | MySQL: 10.1.31-MariaDB-cll-lve

Re: After installation, only white screen
« Reply #6 on: February 03, 2017, 10:20:24 AM »
Hi,

Try this for osDate Evo 1.2
Upload geoip.inc into geoip folder

The changes are
Open:  geoip/geoip.inc

Find:
Code: [Select]
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;
}


Change to:
Code: [Select]
if (function_exists("geoip_country_code_by_name")) {
// Do nothing
} else {
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")) {
// Do nothing
} else {
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;
}
}

Thank you very much! It Works.

*

Pharg

  • *****
  • 3,156
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: After installation, only white screen
« Reply #7 on: February 03, 2017, 10:46:45 AM »
I had this error once with a hosting provider (can't remember which one).
I believe it was due to the hosting provider already have the geoip loaded into PHP and, when osDate tries to load it, it gives the error, as it was already loaded.

See my post below for the answer I did at the time.

Hi CBG,

It probably was due to that as the host did have geoip loaded in it's hosting.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35