Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    UK
    Posts
    400
    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

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    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...

  3. #3
    Join Date
    May 2008
    Location
    UK
    Posts
    400
    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

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    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...

  5. #5
    Join Date
    May 2008
    Location
    UK
    Posts
    400
    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.....

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

    Default Re: Timezone error .... help plz

    This is a log from the fresh install that i have just done :

    [22-Jul-2015 10:28:12 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /websites/123reg/LinuxPackage22/fa/tm/oo/************/public_html/a*****/login.php:13) in /websites/123reg/LinuxPackage22/fa/tm/oo/**********/public_html/includes/functions/sessions.php on line 115

    [22-Jul-2015 10:28:12 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /websites/123reg/LinuxPackage22/fa/tm/oo/f**************.com/public_html/admin8/login.php:13) in /websites/123reg/LinuxPackage22/fa/tm/oo/f********.com/public_html/*********/includes/init_includes/init_templates.php on line 28

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

    Default Re: Timezone error .... help plz

    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    I'm tapped at the moment. Really hope that someone else has a path to resolution to offer..
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

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