Dashboard - Error Log
#1
Posted 02 April 2011 - 01:18 PM
Dashboard - Error log:
04/02/2011 07:45:22 PHP Warning: strftime() [<a href='function.strftime'>functi..
04/02/2011 07:45:22 PHP Warning: mktime() [<a href='function.mktime'>function.m..
04/02/2011 07:45:22 PHP Warning: date() [<a href='function.date'>function.date<..
04/02/2011 07:45:22 PHP Warning: mktime() [<a href='function.mktime'>function.m..
04/02/2011 07:45:22 PHP Warning: date() [<a href='function.date'>function.date<..
04/02/2011 07:45:22 PHP Warning: strftime() [<a href='function.strftime'>functi..
How to fix it?
#2 ONLINE
Posted 02 April 2011 - 04:26 PM
Could you post the full error message?
Thanks,
#3
Posted 02 April 2011 - 04:39 PM
Harald Ponce de Leon, on 02 April 2011 - 04:26 PM, said:
Could you post the full error message?
Thanks,
Hi Harald,
Here it is:
PHP Warning: strftime() [<a href='function.strftime'>function.strftime</a>]: 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/Denver' for 'MDT/-6.0/DST' instead in /var/www/localhost/htdocs/sysconcept_ca/oscommerce/osCommerce/OM/Core/DateTime.php on line 37
PHP Warning: mktime() [<a href='function.mktime'>function.mktime</a>]: 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/Denver' for 'MDT/-6.0/DST' instead in /var/www/localhost/htdocs/sysconcept_ca/oscommerce/osCommerce/OM/Core/DateTime.php on line 37
PHP Warning: date() [<a href='function.date'>function.date</a>]: 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/Denver' for 'MDT/-6.0/DST' instead in /var/www/localhost/htdocs/sysconcept_ca/oscommerce/osCommerce/OM/Core/DateTime.php on line 36
PHP Warning: mktime() [<a href='function.mktime'>function.mktime</a>]: 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/Denver' for 'MDT/-6.0/DST' instead in /var/www/localhost/htdocs/sysconcept_ca/oscommerce/osCommerce/OM/Core/DateTime.php on line 36
PHP Warning: date() [<a href='function.date'>function.date</a>]: 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/Denver' for 'MDT/-6.0/DST' instead in /var/www/localhost/htdocs/sysconcept_ca/oscommerce/osCommerce/OM/Core/DateTime.php on line 84
PHP Warning: strftime() [<a href='function.strftime'>function.strftime</a>]: 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/Denver' for 'MDT/-6.0/DST' instead in /var/www/localhost/htdocs/sysconcept_ca/oscommerce/osCommerce/OM/Core/DateTime.php on line 37
Regards,
#4
Posted 02 April 2011 - 10:50 PM
date.timezone=America/New_York
Obviously use whatever time zone you want. Also, not sure if this is a quick fix to a bigger bug, but it works fine for me now. This might be the best fix for me anyway since my hosting provider's servers are in a different time zone than me anyway, and I'd like it to use my local time zone.
Best,
Josh Hanson
Edited by joshhanson314, 02 April 2011 - 10:52 PM.
#5 ONLINE
Posted 02 April 2011 - 11:01 PM
That is absolutely the best solution to the issue :-) The issue is with an incorrectly configured PHP installation.
We can detect this though and fix appropriately, and will be included in the first v3.0.1 update package.
Kind regards,
#6
Posted 03 April 2011 - 12:58 AM
joshhanson314, on 02 April 2011 - 10:50 PM, said:
date.timezone=America/New_York
Obviously use whatever time zone you want. Also, not sure if this is a quick fix to a bigger bug, but it works fine for me now. This might be the best fix for me anyway since my hosting provider's servers are in a different time zone than me anyway, and I'd like it to use my local time zone.
Best,
Josh Hanson
I've tried your solution, created file php.ini with one line:
date.timezone=Canada/Mountain
in the root directory
/var/www/localhost/htdocs/oscommerce
and restarted apache server.
but it is not working. I've tried to modify: /etc/php/cli-php5.3/php.ini but still same error.
What am I doing wrong?
#7 ONLINE
Posted 03 April 2011 - 12:06 PM
A bug report has been created to track this issue:
http://forums.oscommerce.com/tracker/issue-239-no-default-time-zone-set/
This issue is actually now fixed and will appear in the v3.0.1 update package that will be published in a few days.
Kind regards,
#8
Posted 03 April 2011 - 06:32 PM
Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.
For links mentioned in old answers that are no longer here follow this link Useful Threads.
If this post was useful, click the Like This button over there ======>>>>>.
#9
#10
Posted 03 April 2011 - 08:23 PM
Best,
Josh
#11
Posted 03 April 2011 - 08:40 PM
-rw-r--r-- 1 apache apache 554 Apr 1 18:32 index.php
drwxr-xr-x 3 apache apache 4096 Apr 1 18:32 osCommerce
-rw-r--r-- 1 apache apache 31 Apr 3 14:41 php.ini
drwxr-xr-x 6 apache apache 4096 Apr 1 18:32 public
#12
Posted 05 May 2012 - 09:50 PM
joshhanson314, on 02 April 2011 - 10:50 PM, said:
date.timezone=America/New_York
Obviously use whatever time zone you want. Also, not sure if this is a quick fix to a bigger bug, but it works fine for me now. This might be the best fix for me anyway since my hosting provider's servers are in a different time zone than me anyway, and I'd like it to use my local time zone.
Best,
Josh Hanson
works great









