Results 1 to 8 of 8
  1. #1
    Join Date
    May 2010
    Location
    Texas
    Posts
    393
    Plugin Contributions
    0

    red flag Stuck in maintenance mode !!!

    I had to change the name of my DB. So I followed these steps:
    • Put site in maintenance mode
    • exported the DB. (via PHPmyAdmin)
    • imported DB into a newly created DB with the new name.
    • Updated the two config files,
    • went to admin (it was working), set maintenance to false. The Admin screen showed it was no longer in maintenance

    But the public shopping cart still showed maintenance mode !!!

    checked the two config files, they were correct.

    Panic! Updated the config files back to the old DB, it all works.

    What did I do wrong?

  2. #2
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    525
    Plugin Contributions
    0

    Default Re: Stuck in maintenance mode !!!

    Quote Originally Posted by split63 View Post
    I had to change the name of my DB. So I followed these steps:
    • Put site in maintenance mode
    • exported the DB. (via PHPmyAdmin)
    • imported DB into a newly created DB with the new name.
    • Updated the two config files,
    • went to admin (it was working), set maintenance to false. The Admin screen showed it was no longer in maintenance

    But the public shopping cart still showed maintenance mode !!!

    checked the two config files, they were correct.

    Panic! Updated the config files back to the old DB, it all works.

    What did I do wrong?
    For what it is worth, see previous post on same subject. https://www.zen-cart.com/showthread....!!-Please-help!!

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Stuck in maintenance mode !!!

    In modifying includes/configure.php, was its permissions changed to support write capability just before trying to save it? It is possible that some caching may have been involved with one or more of these operations.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    May 2010
    Location
    Texas
    Posts
    393
    Plugin Contributions
    0

    Default Re: Stuck in maintenance mode !!!

    When I altered the config files, I commented out the active DB details and copied then modified the details for the new DB, then hit save.
    When it would not come off maintenance mode, I just did the reverse, uncommented the original DB details and commented out the new, then hit save. If the 2nd action worked, the 1st must have been okay too in terms of permissions.

    I could just try changing the name of the DB directly, but I don't like the idea of touching the golden source....

    Where is the state of maintenance mode stored in the DB?

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: Stuck in maintenance mode !!!

    Code:
    SELECT *
    FROM `configuration`
    WHERE `configuration_key` = 'DOWN_FOR_MAINTENANCE'
    turn off maintenance mode:
    Code:
    update  `configuration`
    set configuration_value = false
    WHERE `configuration_key` = 'DOWN_FOR_MAINTENANCE'
    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    May 2010
    Location
    Texas
    Posts
    393
    Plugin Contributions
    0

    Default Re: Stuck in maintenance mode !!!

    Quote Originally Posted by carlwhat View Post
    turn off maintenance mode:
    Code:
    update  `configuration`
    set configuration_value = false
    WHERE `configuration_key` = 'DOWN_FOR_MAINTENANCE'
    What is so confusing is that when maintenance mode was set to false inside Admin, the Admin screen showed it was no longer in maintenance mode. So something in the DB changed.....yet, the shopping cart itself showed it was still in maintenance mode. How can this be? I tried different browsers, all showed the cart was in maintenance mode. I kept refreshing....no change.

  7. #7
    Join Date
    May 2010
    Location
    Texas
    Posts
    393
    Plugin Contributions
    0

    Default Re: Stuck in maintenance mode !!!

    I searched the DBs for the term "DOWN_FOR_MAINTENANCE". I find 10 entries in table zen_configuration, shown below.
    Comparing the two databases, they are identical with regard to these 10 entries

    There must be more to it.


    Name:  maintenance mode.jpg
Views: 116
Size:  119.6 KB

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: Stuck in maintenance mode !!!

    Quote Originally Posted by split63 View Post
    I searched the DBs for the term "DOWN_FOR_MAINTENANCE". I find 10 entries in table zen_configuration, shown below.
    Comparing the two databases, they are identical with regard to these 10 entries

    There must be more to it.


    Name:  maintenance mode.jpg
Views: 116
Size:  119.6 KB
    none of those other entries mean anything if the first entry is false.

    you have a db config problem. specifically it sounds like your storefront is using a different (ie your original db). now you can say that's untrue and perhaps you are correct... more likely not.

    i am not sure of exact load order; but something is setting your storefront db to your old db that is in maintenance mode. perhaps you have a includes/local/configure.php that gets loaded first or something else, as you seem to be insistent that includes/configure.php is correct.

    we know that maintenance mode works and works correctly. is it possible it is a caching problem? no idea.... but i think not, especially as you have tried different browsers which would provide new sessions.

    so i'm sticking with an issue with your config files.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. Stuck in maintenance mode!! Please help!!
    By emsfelties in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 18 May 2019, 07:16 PM
  2. v156 Stuck in Maintenance Mode
    By RixStix in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 9 Jan 2019, 04:46 AM
  3. 1.3.9c demo stuck in maintenance
    By Saintsteven in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 27 May 2010, 08:46 AM
  4. Problem w/ Maintenance Mode
    By Crash44 in forum General Questions
    Replies: 2
    Last Post: 13 Feb 2010, 05:27 AM
  5. maintenance mode for a month?
    By mooncavecrystals in forum General Questions
    Replies: 1
    Last Post: 4 Dec 2006, 06:53 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