Forums / Upgrading from 1.3.x to 1.3.9 / Site redirecting to 'Down for Maintenance"

Site redirecting to 'Down for Maintenance"

Locked

Views: 2,803

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
29 Oct 2010, 11:30 AM
#1
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Site redirecting to 'Down for Maintenance"

I REALLY need help! My site (v1.3.8) was hacked, so I put it in "Down for Maintenance" mode while I began the process of converting the site to 1.3.9h.

I have installed a brand new folder for 1.3.9h and have finally been able to pull in the DB from my old store. I can login to the admin panel of the new store, but when I go to the storefront it is a blank white page and it is redirecting to the index.php?main_page=down_for_maintenance page from my OLD store (different folder name).

I realize that this is because it is stuck in the DB, how to I correct it and get the storefront to direct to the new location?

Need to get this store back up soon!

Thanks,

29 Oct 2010, 11:44 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Site redirecting to 'Down for Maintenance"

You should be able to use phpMyAdmin in your hosting control panel to open the Zencart DB, go to the 'configuration' table and find configuration id #440 which is the down for maintenance switch, and edit it from true to false.

I'm not sure why you can't do that in admin, though.

29 Oct 2010, 12:59 PM
#3
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Thanks for the quick response.

I can change the setting from admin, but when I switch down for maintenance to "false" in admin in the NEW store, it is still redirecting to the old site "down for maintenance" URL. Not sure why it's going to the old URL at all!

Any other suggestions.

29 Oct 2010, 2:44 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Got a URL so we can see what you see?

The learning is in the doing.

Potent Products

29 Oct 2010, 3:14 PM
#5
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

OK, so I've got it to stop re-directing to the old site (not sure how), but now the store front is blank. I've tried to view the log file in the cache folder, but there is no log. I thought it was included with 1.3.9h? How do I access it to see what the error might be?

Here is the URL: http://www.providencefirevideos.com/shop2/index.php?main_page=

29 Oct 2010, 3:19 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

If you setup a new "shop2" dir. for the new install, have you include that path in:

includes/configure.php

The learning is in the doing.

Potent Products

29 Oct 2010, 3:27 PM
#7
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Let me take a look, I was so concerned about making sure the new database details were right in the config doc, that I didn't even think about updating anything else.

Thanks...I'll reply back after I've checked it out.

29 Oct 2010, 11:43 PM
#8
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Thanks so much.. That was the problem. However, now my storefront is blank.

I've tried checking the cache folder for a log file, but it doesn't show me anything. What am I doing wrong? Help!

29 Oct 2010, 11:46 PM
#9
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Oh, one more thing. I ended up doing a new install and changed my URL to: http://www.providencefirevideos.com/shop/

30 Oct 2010, 1:50 AM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

admin/includes/configure.php
includes/configure.php

The above two files must have the correct paths to your Zen Cart setup. Check them both and make sure.

The learning is in the doing.

Potent Products

30 Oct 2010, 2:22 AM
#11
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Yes, both config files have the exact path. The issue seems to have happened after I tried to load my template file. Not sure if I missed a step and I can't see anything in the cache log files.

30 Oct 2010, 4:42 AM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Whenever in doubt about a custom template, switch back to 'classic' to see if everything is working correctly. If it is then you know the problem is somewhere within your custom template files.

A quick look tells me your problem is in this file:

includes/templates/YOUR_TEMPLATE/common/html_header.php

Bad coding just after:

<link rel="stylesheet" type="text/css" media="print" href="[includes/templates/ProvFireVideo/css/print\_stylesheet.css](http://www.zen-cart.com/forum/view-source:http://www.providencefirevideos.com/shop/includes/templates/ProvFireVideo/css/print_stylesheet.css)" />

The learning is in the doing.

Potent Products

30 Oct 2010, 2:11 PM
#13
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

When I switch back to the 'classic' template all is fine. However, I tried to find the file you reference and it doesn't exist. There is no html_header.php file in that directory. I only found one in includes/templates/Template_default/common. What am I missing? Starting to feel really stupid.

I appreciate all your help!

30 Oct 2010, 2:43 PM
#14
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

:clap::clap::clap:

Figured it out! Thank you...

30 Oct 2010, 10:09 PM
#15
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site redirecting to 'Down for Maintenance"

Its always a good thing to share the solution that worked for you. It helps future readers of this thread with a possible solution to their problem. :wink:

The learning is in the doing.

Potent Products