Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default can't log in to admin

    Hi,

    I am currently unable to log into my client's admin and am getting 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 [path to store]/login.php on line 13"

    This error appears on the login screen but does show the log in form. When I enter my credentials and click login, however, just the error appears and I cannot access anything in admin.

    As far as I'm aware no changes have been made to any of the php files (only I would have done that - my client does not know how to download or edit any php files). Does anyone have any idea why this would suddenly arise?

    Thanks for any light anyone can shed on this.

  2. #2
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Re: can't log in to admin

    Doing a little digging I think maybe this is related to a change on the server in PHP version (?) I checked to see if maybe whatever issue is causing this error has been addressed in v. 1.5.4 but it looks like the line of code in question is the same for both version 1.5.2 and 1.5.4

    Code:
    define('ADMIN_PASSWORD_EXPIRES_INTERVAL', strtotime('- 90 day'));

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: can't log in to admin

    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Re: can't log in to admin

    Thanks. That was helpful. It didn't solve the problem, though, so off to contact the hosting company! :)

  5. #5
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Re: can't log in to admin

    Interesting. This same error occurs when I run a test php page with nothing but:

    PHP Code:
    phpinfo(); 
    Must be something on the host's end, I think.

  6. #6
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Re: can't log in to admin

    So, the hosting company "fixed" it by rolling back from PHP version 5.6 to version 5.4.4. They said "Our system automatically upgraded you to use php5.6, and your site wasn't ready for it, so I rolled it back"

    Does this get sorted out in a higher level of ZenCart or should I keep the site on PHP 5.4.4 until a newer version of ZenCart comes out?

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: can't log in to admin

    if
    Code:
    phpinfo();
    causes an error, i find it hard to imagine that there is a problem on the zen-cart side of things.

    to me, it still sounds like a problem on the hosts side; despite what the hosting company may say.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 4 Dec 2013, 08:02 PM
  2. Replies: 3
    Last Post: 4 Jun 2009, 06:40 PM
  3. Can't log in - can't add to cart - can't log in to admin?
    By ehdesign in forum General Questions
    Replies: 6
    Last Post: 5 Mar 2009, 09:29 AM
  4. Replies: 16
    Last Post: 31 Jan 2008, 06:44 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