Thread: Admin error

Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Posts
    30
    Plugin Contributions
    0

    red flag Admin error

    Yesterday I installed the Time Zone offset module. Everything worked great. Today I had to make a major database change, so I backed-up my database and then had to restore it (back to the backup I made today). During the restoring process an error came up and now I can not access the admin area at all! I just get a page with the following error.

    Code:
     
    1054 Unknown column 'TIME_ZONE_OFFSET' in 'field list'
    in:
    [select date_add(now(), INTERVAL TIME_ZONE_OFFSET HOUR) as date]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Please help! I was supposed to post this site tomorrow!

  2. #2
    Join Date
    Aug 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: Admin error

    Don't know if this would be helpful also...

    The browser error that shows up is:
    Line: 333
    Char: 15
    Error: Object required
    Code: 0
    URL: http://www.mysite.com/admin/

    I just don't know what file to look in to make any code changes.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Admin error

    Your PHP code is expecting to have database fields related to the time-zone-offset module, but your database doesn't have them.
    This would be typical of restoring from a backup made prior to the installation of that module, but using PHP files related to "after" installing the module.

    you have things out of sync.
    .

    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.

  4. #4
    Join Date
    Aug 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: Admin error

    But I restored to a backup just done today - after the install of the module.

    How do I resolve it? Can I edit something in my database or do I need to go in and revert back the php files?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Admin error

    Well ... I have no way of knowing what the *best* way to fix it is ... either you intended to have the timezone-offset module installed, or you didn't.
    If you expected it to be installed, then ... I guess I'd be planning to re-install it.

    You might check to see whether you've edited your configure.php files to be pointing to a different database and/or using a different table-prefix vs what your backup contained.


    Honestly, if you did the backup today, and you didn't change the PHP files, and you did a restore ... then either it wasn't working when you did your backup, or you've restored the wrong database ... or you've changed files that you don't remember changing. Or maybe your backup or restore wasn't complete.


    The "answer" depends on answers to the issues of all the steps you've done today and what state you want the database/php files to be in when you're done.
    .

    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.

  6. #6
    Join Date
    Aug 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: Admin error

    Thank you so much for your quick help. I was able to get the site back up and running. It turned out there was an error when I restored the database so it set up a blank one instead, which was missing the needed field. I was able to run the SQL query in phpMySQL to put the fields back into the database. That got rid of the error and let me back in admin. Then I was able to restore my database back without a problem when I retried.

 

 

Similar Threads

  1. Replies: 13
    Last Post: 4 Jun 2011, 02:31 PM
  2. error when trying to log into admin after changing admin name
    By pcrcanada in forum General Questions
    Replies: 8
    Last Post: 29 Jun 2009, 08:51 PM
  3. Replies: 3
    Last Post: 15 Apr 2009, 03:23 PM
  4. error/cannot access The Admin Console 500 internal server error
    By psarapas in forum Installing on a Mac Server
    Replies: 4
    Last Post: 12 Mar 2008, 11:45 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