Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default [Done v1.5.5] Admin timezone error on login page

    I have seen this exact issue posted in other threads, but none of the solutions have worked. This is a fresh install of v1.5.4. The server is running PHP 5.6.

    This is the error when I try to access the admin page:

    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 /home1/***/public_html/new/shopadmin/login.php on line 13
    I have set the time zone in includes/extra_configures/set_time_zone.php, this is what is there now:
    if (version_compare(PHP_VERSION, 5.3, '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'America/New_York'; // eg: 'Europe/Oslo'
    I am also getting this error in the log files:
    [11-Nov-2015 13:49:55 America/New_York] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home1/***/public_html/new/shopadmin/login.php:13) in /home1/***/public_html/new/includes/functions/sessions.php on line 115
    [11-Nov-2015 13:49:55 America/New_York] PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/***l/public_html/new/shopadmin/login.php:13) in /home1/***/public_html/new/shopadmin/includes/init_includes/init_templates.php on line 28
    I have checked the files referenced in the log file, but none of them have empty lines, spaces, etc.

    I just don't know what else to try. The Zen-Cart server compatibility page says that v1.5.4 is compatible with PHP 5.5 and 5.6, but it seems there are issues with 5.6. I tried using 5.5 instead, but it's not installed on the server unfortunately.

    Any suggestions on how I can fix this? Thanks!
    Danielle

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Admin timezone error

    Evidently it's a bug which only shows up when the hosting server has done nothing with timezone support at all.

    The fix (which we'll put in the next version) is simple:

    Edit /admin/login.php
    Find line 16:
    Code:
    require ('includes/application_top.php');
    and move it up above line 9 (or at least above line 13 where strtotime() is being called).
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Admin timezone error

    That worked perfectly, thank you!

    Quote Originally Posted by DrByte View Post
    Evidently it's a bug which only shows up when the hosting server has done nothing with timezone support at all.

    The fix (which we'll put in the next version) is simple:

    Edit /admin/login.php
    Find line 16:
    Code:
    require ('includes/application_top.php');
    and move it up above line 9 (or at least above line 13 where strtotime() is being called).
    Danielle

  4. #4
    Join Date
    Nov 2015
    Location
    WA.
    Posts
    1
    Plugin Contributions
    0

    Default Re: Admin timezone error

    I had the same problem.

    This worked great.

 

 

Similar Threads

  1. v150 Admin Login Page Error, WARNING: An Error occurred
    By maperr55 in forum General Questions
    Replies: 5
    Last Post: 3 Jun 2016, 04:51 AM
  2. Replies: 2
    Last Post: 27 Sep 2013, 02:59 AM
  3. Error message on SSL admin login page
    By xlawdog in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 3 Jul 2007, 05:17 AM
  4. Replies: 4
    Last Post: 13 Jul 2006, 03:49 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR