Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2016
    Location
    Frederick, Maryland, USA
    Posts
    4
    Plugin Contributions
    0

    Default Error message when attempting to log in to the admin panel

    I originally downloaded and installed ZenCart on my server in 2013. Not updated since. I was sick for a LONG time and I am now back to attempting to get things going again. I don't know the version for sure. Where do I find it? My site's PHP version is 5.5.29

    When I go to the URL to log in to my admin page for setting up my cart, I find the message below, above the box where I would enter my username and password.

    Warning: strtotime(): Invalid date.timezone value 'EDT', we selected the timezone 'UTC' for now. in /home/thecraze/www/www/cart/admin/login.php on line 13

    When I go to that address in my control panel, I do not find ANYTHING that relates to timezones.

    Yes, my username and password work... and AFTER I submit my username and password, I get that same message at the top of the page and nothing else.

    I have cleared the cookies on Firefox (I am using the latest version of Firefox)

    Looks to me like ZenCart is not acknowledging my password.

    My cart can be found at: www.thecrazedcollector.com/cart

    What am I doing wrong or what needs to be done to remedy this challenge?

    HELP Please!

    David Perkins - [email protected]

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Error message when attempting to log in to the admin panel

    David, a Zen Cart installed in 2013 is most likely running Zen Cart 1.5.1. You can check the file /includes/version.php to see for sure.

    To correct most of the timezone-related issue (there's also some change required to the database interface, but I'm not sure how down-version-portable that is), you can use the code that was introduced in Zen Cart 1.5.2.

    Create the file /includes/extra_configures/set_time_zone.php that contains:
    Code:
    <?php
    /**
     * @package initSystem
     * @copyright Copyright 2003-2013 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: DrByte  Sat Nov 2 01:21:28 2013 -0400 New in v1.5.2 $
     */
    /*
     * Set time zone
    */
    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'
    
    
    
      /**
       * MAKE NO CHANGES BELOW THIS LINE
       *
       * The following will take the timezone you specified above and apply it in your store.
       * If you didn't specify one, it will try to use the setting from your server's PHP configuration
       */
      if ($TZ == 'America/New_York') {
        $TZ = date_default_timezone_get();
      }
      if ($TZ != '') {
        putenv('TZ=' . $TZ);
        @date_default_timezone_set($TZ);
      }
    }
    and then add the file /YOUR_ADMIN/includes/extra_configures/use_catalog_time_zone.php that contains:
    Code:
    <?php
    /**
     * @package admin
     * @copyright Copyright 2003-2013 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: DrByte  Sat Nov 2 01:21:28 2013 -0400 New in v1.5.2 $
     */
    // get time zone settings from catalog-side file
    include (DIR_FS_CATALOG . '/includes/extra_configures/set_time_zone.php');

  3. #3
    Join Date
    Apr 2016
    Location
    Frederick, Maryland, USA
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error message when attempting to log in to the admin panel

    Lat9,

    Thanks so much! Success at last. Correct on version # it is 1.5.1

    Your add-in's did the trick.

    Your help is Greatly Appreciated.

    David

  4. #4
    Join Date
    Apr 2016
    Location
    Frederick, Maryland, USA
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error message when attempting to log in to the admin panel

    Oh shucks,

    I thought things were all well and once the admin page timed out, I get this message at the top of the screen, above where I'm to log in...

    Warning: strtotime(): Invalid date.timezone value 'EDT', we selected the timezone 'UTC' for now. in /home/thecraze/www/www/cart/5802/login.php on line 13

    Will updating to a more current version help or is something more cinister at work here?

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Error message when attempting to log in to the admin panel

    Updating to the current version (Zen Cart 1.5.5) will certainly help; what you're experiencing is a software incompatibility between your site's PHP version and your Zen Cart version.

  6. #6
    Join Date
    Apr 2016
    Location
    Frederick, Maryland, USA
    Posts
    4
    Plugin Contributions
    0

    Default Re: Error message when attempting to log in to the admin panel

    Thanks again. I'll take the dare and update.

    I'm hoping that updating is as easy as updating my wordpress blog is...

    Any tips before i begin?

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Error message when attempting to log in to the admin panel

    Quote Originally Posted by dPerkins View Post
    Thanks again. I'll take the dare and update.

    I'm hoping that updating is as easy as updating my wordpress blog is...

    Any tips before i begin?
    It probably won't be that easy, but for a lightly-customized Zen Cart installation the upgrade shouldn't be too bad.

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

    Default Re: Error message when attempting to log in to the admin panel

    Quote Originally Posted by dPerkins View Post
    Thanks again. I'll take the dare and update.

    I'm hoping that updating is as easy as updating my wordpress blog is...

    Any tips before i begin?
    Out the gate? Backup the database and files before beginning the upgrade/rebuild.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Error message when attempting to log in to the admin panel

    Quote Originally Posted by dPerkins View Post
    Warning: strtotime(): Invalid date.timezone value 'EDT', we selected the timezone 'UTC' for now. in /home/thecraze/www/www/cart/5802/login.php on line 13
    Just a note: 'EDT' is not the style of timezone that PHP recognizes.

    On the Admin login page, especially prior to v1.5.5, you'll be seeing messages about timezone errors because Zen Cart's time-zone stuff hasn't kicked in prior to loading the login form (that was fixed in v155) ... and thus the errors you see are related to your server's PHP configuration, as set by your hosting company.

    Your hosting company should be using something like 'America/New_York' instead of EDT in their master php.ini configuration of the server.
    (Although many would argue that the hosting company should always set it to UTC, and let individual sites choose their own timezone. But that's another issue beyond the scope of this discussion.)
    .

    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.

  10. #10
    Join Date
    Mar 2006
    Posts
    86
    Plugin Contributions
    0

    Default Re: Error message when attempting to log in to the admin panel

    Hi, I have the same problem., I cannot log into my admin in one of my site.
    I uploaded the two files in this thread to my website, but it did not worked.
    I am using ZenCart 1.5.0 and PHP 5.6.2 and MySQL 5.5.45-cll-lve
    I am running this ZenCart version since it come out, I think last year.
    I did the official upgrade procedure.

    Here is the error message I got:
    Warning: strtotime() [function.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 'America/New_York' for 'EDT/-4.0/DST' instead in /home/vod/public_html/CART/ADMIN/login.php on line 13

    Can you help me figure out the solution?
    Thank you
    www.vodmochka.com
    Our New Zen cart: www.EmbroideryPortraits.com/Gifts/
    www.vodmochka.com/Embroidery_Designs
    All critics and suggestions are welcome!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Error message when attempting to add items to, or view the cart
    By radiowave911 in forum Basic Configuration
    Replies: 3
    Last Post: 11 Apr 2016, 01:30 AM
  2. Replies: 6
    Last Post: 28 Dec 2012, 09:38 PM
  3. Replies: 2
    Last Post: 17 Nov 2008, 12:46 PM
  4. Session_start error message when trying to access Admin panel - help please!!
    By campbdy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 May 2008, 08:24 PM
  5. Error message when trying to log in to Admin: No input file specified
    By zcartbonn in forum Installing on a Mac Server
    Replies: 4
    Last Post: 25 May 2006, 11:54 PM

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