Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Store quit working, suspect database

    Preparing to update my wife's store -- not used in over 3 months -- I could not login to the admin, although I could login as a customer and place an order. There were no errors; it just kept reloading the login screen. Clicking for a password reset did nothing.

    I re-loaded the store from a backup from when I knew she last used it, but it still did the same thing. Since I had upgraded servers, I thought perhaps my host messed up the database, so I created a new database and restored an old backup into it.

    When tried to go to the store, I received "There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem." I thought perhaps something needed to be reset by running the install program, but received: "ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing." Other stores are running on the same server okay.

    Switched back to the old configure.php files and back to the retail store working, but admin not. I tried the SQL deletion of the Admin ID, but that didn't work, either. Suggestions appreciated.
    Thanks,
    Ray

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Store quit working, suspect database

    Quote Originally Posted by rayw1679 View Post
    Preparing to update my wife's store -- not used in over 3 months -- I could not login to the admin, although I could login as a customer and place an order. There were no errors; it just kept reloading the login screen. Clicking for a password reset did nothing.

    I re-loaded the store from a backup from when I knew she last used it, but it still did the same thing. Since I had upgraded servers, I thought perhaps my host messed up the database, so I created a new database and restored an old backup into it.

    When tried to go to the store, I received "There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem." I thought perhaps something needed to be reset by running the install program, but received: "ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing." Other stores are running on the same server okay.

    Switched back to the old configure.php files and back to the retail store working, but admin not. I tried the SQL deletion of the Admin ID, but that didn't work, either. Suggestions appreciated.
    Hi Ray,

    I am more so suspecting that the recent server upgrade and your store you are trying to upgrade won't play nicely together.

    A few Q's:

    1. what zc version is your old store?

    2. what kind of upgrades happened on the server?

    3. what happens if you install a vanilla zc 1.5.1 on this domain - will it work?

    4. is the server a Windoze machine or does it run on Linux?

    If was you I'd try to get an answer to Q 3. first.

    Just a few thoughts from my end.

    Cheers / Frank

  3. #3
    Join Date
    Oct 2012
    Posts
    39
    Plugin Contributions
    0

    Default Re: Store quit working, suspect database

    Do you have the correct email address to recover your password?

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Store quit working, suspect database

    Quote Originally Posted by rayw1679 View Post
    I re-loaded the store from a backup from when I knew she last used it, but it still did the same thing. Since I had upgraded servers, I thought perhaps my host messed up the database, so I created a new database and restored an old backup into it.
    and did you update your configure.php files with the new DB info??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Store quit working, suspect database

    Thank you for responding.

    Frank18:
    1. 1.5.1
    2. We upgraded to a newer, faster server. Our host performed the upgrade.
    3. I haven’t tried it, yet. I’m hoping to find the problem before trying to completely reinstall. Also, I sometimes have a tendency to break more than I fix, so I’d like to try the small stuff first.
    4. Linux Apache.

    21yanks: Yes, I verified it from the database backup. I’m not getting a password error – it just reloads. If I’m reading the backup properly, the hex values for my ID are the same prior to and after my attempt to change the password.

    DivaVocals: Yes, and I discovered I typed the password wrong, but that didn’t fix it.

    Running under the new copy of the database, it’s the same. I can view the store, but can’t sign-in to admin. There is are no error messages when I try, and password reset doesn’t send it to me.

    This error was in the logs from when I tried to log-in: PHP Fatal error: 0B_ERROR_NOT_CONNECTED :: delete from db_cache in …/store/includes/classes/db/mysql/query_factory.php on line 120

    It’s strange I can go in as a user, login, and create an order (hence, database is being accessed), but can’t login to admin. (I ran the admin password fix SQL against the new database and that didn’t work, either.)

    I have downloaded the store and run WinMerge against the original and there are no program changes.
    Thanks,
    Ray

  6. #6
    Join Date
    Oct 2012
    Posts
    39
    Plugin Contributions
    0

    Default Re: Store quit working, suspect database

    start from a fresh zencart installation. re-upload your ftp files to your new installation then re-upload your backup database follow this guide:

    http://www.zen-cart.com/content.php?...fferent-server

    i hope it works..

  7. #7
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Store quit working, suspect database

    Resolved; two problems. The database was indeed bad. My test store would run the new database okay, but not the old one, but the "bad" store wouldn't run with either. Apparently I somehow copied the wrong custom cookie path for running the store (wrong path), something we 1&1 users have to do when using shared SSL. (LAT9 was kind enough to figure this out a year ago.) Thanks again to all who assisted.
    Thanks,
    Ray

  8. #8
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Store quit working, suspect database

    Quote Originally Posted by rayw1679 View Post
    Resolved; two problems. The database was indeed bad. My test store would run the new database okay, but not the old one, but the "bad" store wouldn't run with either. Apparently I somehow copied the wrong custom cookie path for running the store (wrong path), something we 1&1 users have to do when using shared SSL. (LAT9 was kind enough to figure this out a year ago.) Thanks again to all who assisted.
    Thanks for the update. Glad you got this fixed now.

  9. #9
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Store quit working, suspect database

    Thank you, Frank18. Two problems make it difficult, as one fix doesn't fix it. I was about to completely reinstall, but then I never would have known the problem, so I wouldn't have learned anything. Thanks to all who provided advice.
    Thanks,
    Ray

  10. #10
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Store quit working, suspect database

    Quote Originally Posted by rayw1679 View Post
    Thank you, Frank18. Two problems make it difficult, as one fix doesn't fix it. I was about to completely reinstall, but then I never would have known the problem, so I wouldn't have learned anything. Thanks to all who provided advice.
    Yep, makes sense. And, as always, the learning is in the doing.

    Cheers / Frank

 

 

Similar Threads

  1. HTMLArea quit working.
    By delia in forum General Questions
    Replies: 6
    Last Post: 27 Jan 2011, 08:43 PM
  2. Sales Tax Quit Working
    By Hansen Enterprises in forum General Questions
    Replies: 1
    Last Post: 8 Aug 2008, 12:38 AM
  3. Mercury Quit Working
    By Starlyn in forum Installing on a Windows Server
    Replies: 3
    Last Post: 23 Mar 2008, 09:33 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