Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    May 2008
    Location
    UK
    Posts
    398
    Plugin Contributions
    0

    Default Timezone error .... help plz

    Hi there

    I have just completed a fresh installation of Zencart v1.5.4. The front of the site is working great but when i get to the admin i get the error below :


    Warning: strtotime(): 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. in /websites/123reg/LinuxPackage22/fa/tm/oo/fa$$$$$$$$$.com/public_html/admin$$$$$$/login.php on line 13


    I have followed some advice on this forum but its not helped with the issue at all.....

    PHP Version: 5.6.11 (Zend: 2.6.0)

    can anyone help please?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: Timezone error .... help plz

    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    I might suggest the following specific post which relates to ZC 1.5.2 and above:
    https://www.zen-cart.com/showthread....05#post1270805
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    May 2008
    Location
    UK
    Posts
    398
    Plugin Contributions
    0

    Default Re: Timezone error .... help plz

    Quote Originally Posted by mc12345678 View Post
    I might suggest the following specific post which relates to ZC 1.5.2 and above:
    https://www.zen-cart.com/showthread....05#post1270805

    Hi there

    Yes i have been searching for threads on trying to fix this issue and i have tried adding the location in to the script too... but that error is still there ....

    not sure what else there is ???

    thanks

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    Quote Originally Posted by amebb View Post
    Hi there

    Yes i have been searching for threads on trying to fix this issue and i have tried adding the location in to the script too... but that error is still there ....

    not sure what else there is ???

    thanks
    Could you be a little more descriptive? What. Location information was "plugged" in?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    May 2008
    Location
    UK
    Posts
    398
    Plugin Contributions
    0

    Default Re: Timezone error .... help plz

    ok i followed one of the threads to place a location in the script.

    The script was located at - /includes/extra_configures/set_time_zone.php

    so i then placed my location as stated.

    my location is Europe/London

    hope that helps

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    Quote Originally Posted by amebb View Post
    ok i followed one of the threads to place a location in the script.

    The script was located at - /includes/extra_configures/set_time_zone.php

    so i then placed my location as stated.

    my location is Europe/London

    hope that helps
    So the code looks something like:

    Code:
    if (version_compare(PHP_VERSION, 5.3, '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
    Looking over PHP manual, they make it sound like 5.3 should be a string. Perhaps a conversion does (or does not) take place above, assuming that you've cleared your cache after setting the above value and tried to load the admin then try changing this same above snippet to:
    Code:
    if (version_compare(PHP_VERSION, '5.3', '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
    I've also oddly seen that possibly actually modifying the "string" to something like this for the applicable version of PHP has been necessary:
    Code:
    if (version_compare(PHP_VERSION, '5.6', '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
    Or, adding an additional sub-comparison value (that could then be run through the same above modifications):
    Code:
    if (version_compare(PHP_VERSION, 5.3.0, '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    May 2008
    Location
    UK
    Posts
    398
    Plugin Contributions
    0

    Default Re: Timezone error .... help plz

    RESULTS TIME>....

    Ok, i have gone to the file in question - found at /includes/extra_configures/set_time_zone.php

    Firstly, i carried out the following changes, but they made no difference at all.

    if (version_compare(PHP_VERSION, '5.3', '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'


    and

    if (version_compare(PHP_VERSION, '5.6', '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'




    these edits made no difference and i was still getting the error message.

    I then did the final suggested edit ....


    if (version_compare(PHP_VERSION, 5.3.0, '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Europe/London'; // eg: 'Europe/Oslo'


    when i did this change the admin login page was blank.

    i then changed back to the previous settings where i got the admin login page back with the error.


    Hope that helps?

    thanks

  9. #9
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    Blank screen usually generates an error message in the logs directory. Did one appear? Contents?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    May 2008
    Location
    UK
    Posts
    398
    Plugin Contributions
    0

    Default Re: Timezone error .... help plz

    It may have created an error in the log folder. I didnt check because i contacted the host to run a few checks with them.

    My version of PHP was stuck on 5.3 and due to a .htaccess file i was not able to change the version. However, the tech team managed to change the php version to 5.6.

    I then reinstalled the cart again. Remember, now its using Php Version 5.6

    Front end of the shop works great..... the admin login page is still showing this error :

    Warning: strtotime(): 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. in /websites/123reg/LinuxPackage22/fa/tm/oo/f************.com/public_html/admin*************/login.php on line 13

    I am not really sure what else i can try.....

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. i am gettin an error, plz help
    By riship316 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 28 Feb 2010, 10:38 PM
  2. shipping error plz help
    By nathan66 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 23 Feb 2009, 10:06 AM
  3. plz plz help me with zen cart functions
    By anis_huq in forum General Questions
    Replies: 1
    Last Post: 1 Jun 2007, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg