Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Top nav bar links still going to old folder when 'live'.

Top nav bar links still going to old folder when 'live'.

Views: 1,138

Results 1 to 12 of 12
4 Oct 2011, 12:31 AM
#1
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Top nav bar links still going to old folder when 'live'.

Something really weird, I uploaded my entire site from a "zencart" folder to my home folder and now when I click on my 'live' site's home page links, they all go to the links under /zencart. Why?

4 Oct 2011, 1:38 AM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Top nav bar links still going to old folder when 'live'.

You need to update your configure.php files to reflect the new path.

4 Oct 2011, 3:21 AM
#3
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Re: Top nav bar links still going to old folder when 'live'.

RescoCCC:

You need to update your configure.php files to reflect the new path.

Okay is this in the \zencart\includes\configure.php file and do I change only the following two locations in that file?:

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/zencart/');
  define('DIR_WS_HTTPS_CATALOG', '/zencart/');

Do I make them both just / instead of /zencart/?
Thanks!

4 Oct 2011, 3:30 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Top nav bar links still going to old folder when 'live'.

You need to change all instances of zencart in the files, for both WS and FS defines, and you must do the same for both configure files ( /includes/configure.php and /your_admin/includes/configure.php).> Do I make them both just / instead of /zencart/?Yes.

4 Oct 2011, 3:38 AM
#5
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Re: Top nav bar links still going to old folder when 'live'.

And so for the other configure.php file it is here where I make changes?:

define('DIR_WS_ADMIN', '/zencart/admin/');
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

ie. the 2nd and 4th lines only?

4 Oct 2011, 6:49 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Top nav bar links still going to old folder when 'live'.

No, ALL instances of zencart, and in both WS and FS defines.

5 Oct 2011, 1:29 AM
#7
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Re: Top nav bar links still going to old folder when 'live'.

gjh42:

No, ALL instances of zencart, and in both WS and FS defines.

I uploaded the zencart/includes/configure.php file and now the changes have taken effect (without uploading zencart/admin/includes/configure.php). So that was the only configure.php file that I was supposed to change?

5 Oct 2011, 1:57 AM
#8
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Top nav bar links still going to old folder when 'live'.

habsolutely:

I uploaded the zencart/includes/configure.php file and now the changes have taken effect (without uploading zencart/admin/includes/configure.php). So that was the only configure.php file that I was supposed to change?

Can you login to your admin?

5 Oct 2011, 2:19 AM
#9
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Re: Top nav bar links still going to old folder when 'live'.

RescoCCC:

Can you login to your admin?

Yes, I just tried, why?

5 Oct 2011, 3:36 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Top nav bar links still going to old folder when 'live'.

If your admin configures are defined as the old paths, but the files are in the new location, you will not be able to actually use your admin. Why did you think you should not follow our explicit instructions for which files to change?

6 Oct 2011, 2:05 AM
#11
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Re: Top nav bar links still going to old folder when 'live'.

gjh42:

If your admin configures are defined as the old paths, but the files are in the new location, you will not be able to actually use your admin. Why did you think you should not follow our explicit instructions for which files to change?

"Explicit"? :unsure:
Reasoning is that I *can *use my admin and maybe it's just me but the changes I've made since seem to be taking effect. So when you say that I should not be able to use my admin, that's where I am confused. I *can *log in, and I *can *use it.

6 Oct 2011, 3:57 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Top nav bar links still going to old folder when 'live'.

Did you move your installation to the root, or copy it to the root? If you copied it (leaving the original in the subfolder), you will actually be using the version of admin in the subfolder after you log into the root admin. Both root and subfolder will point to the same database, so changes from either will affect the root storefront.