Problem After Migration »  Show posts from    to     

Icy Phoenix


Old Support Topics - Problem After Migration



Costa [ Wed 20 Feb, 2013 10:08 ]
Post subject: Problem After Migration
A few days ago I migrate my VPS for upgrade my operatio system server CentOS release 4.9 (Final), to the latest operation system

CENTOS 6.3 x86_64 virtuozzo – server
WHM 11.34.1 (build 7) .

After the migration I get this

Quote:
[Icy Phoenix Debug] PHP Notice: in file /includes/stats_modules/month_stat_module.php on line 72: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead
[Icy Phoenix Debug] PHP Notice: in file /includes/stats_modules/month_stat_module.php on line 143: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead
[Icy Phoenix Debug] PHP Notice: in file /includes/stats_modules/month_stat_module.php on line 72: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead

in statistics modul
http://a33.gr/statistics.php

Version of Icy Phoenix: 2.0.0.86
Version of PHP: 5.3.21


Joshua203 [ Wed 20 Feb, 2013 11:56 ]
Post subject: Re: Problem After Migration
Have you googled a bit Costa? ...I've found this:

http://www.cyberciti.biz/faq/unix-p...ezone-settings/

Maybe it will help you?


Costa [ Wed 20 Feb, 2013 12:28 ]
Post subject: Re: Problem After Migration
Joshua203,
Thank you, I will see with attention and I let you know here.


Mighty Gorgon [ Sat 02 Mar, 2013 10:40 ]
Post subject: Re: Problem After Migration
Joshua is right... try to check you have defined correctly the default timezone.

Also from a coding point of view all time functions should be converted to GM time functions. I'll have a look at that file.


TheSteffen [ Sun 03 Mar, 2013 21:28 ]
Post subject: Re: Problem After Migration
I think it is a permission problem.

I user on IP.de also had this problem.

I solved it (for sure not the best way)

OPEN includes/functions.php
FIND
Code: [Hide] [Select]
if (!defined('STRIP'))
{
// If we are on PHP >= 6.0.0 we do not need some code
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
{
define('STRIP', false);
}
else
{
define('STRIP', (@get_magic_quotes_gpc()) ? true : false);
}
}

REPLACE WITH
Code: [Hide] [Select]
if (!defined('STRIP'))
{
// If we are on PHP >= 6.0.0 we do not need some code
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
{
define('STRIP', false);
}
else
{
define('STRIP', (@get_magic_quotes_gpc()) ? true : false);
}
}
date_default_timezone_set ('Europe/Berlin');


For you it should be
Code: [Hide] [Select]
date_default_timezone_set ('America/Chicago');


alexandro [ Mon 26 May, 2014 05:46 ]
Post subject: Re: Problem After Migration
what is the solution? how do you solve it? i have this problem :'( but i have 2.0 icy and don't have this secuence


mort [ Mon 26 May, 2014 13:22 ]
Post subject: Re: Problem After Migration
Debug on your site gives this:

[Icy Phoenix Debug] PHP Notice: in file /blocks/statistics_complete.php on line 78: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.


alexandro [ Mon 26 May, 2014 20:01 ]
Post subject: Re: Problem After Migration
Code: [Hide]
  1. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. 
How i do it?

In ACP> General Config>Site Config, i chose UTC - 5 Eastern Standard Time, and delete n times the cache but the mesage don't stop.




Powered by Icy Phoenix