Zen Cart Logo
Forums / General Questions / Problem when moving zen cart to another folder

Problem when moving zen cart to another folder

Locked

Views: 2,124

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
10 Nov 2008, 8:11 PM
#1
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Problem when moving zen cart to another folder

I am almost ready to publish my cart, and put it on review.

I have moved my folder from PUBLIC_HTML/ECOMMERCE to PUBLIC_HTML, following the recommendations from the tutorial "I have installed Zen Cart to a directory. How do I rename or move that directory?"
aka changing the configuration session in admin AND modifying these folders, as instructed:
Your /includes/configure.php and /admin/includes/configure.php files are used to point Zen Cart™ to the right folders. In those files, you need to update several entries to match the new path information:
DIR_WS_CATALOG
DIR_WS_HTTPS_CATALOG
DIR_FS_CATALOG
DIR_FS_SQL_CACHE
DIR_WS_ADMIN (in admin)
DIR_WS_HTTPS_ADMIN (in admin)
DIR_FS_ADMIN (in admin)

It almost worked, but I have lost the presentation and images on my website, as well as access to the admin.

I have downloaded the fix cache key file.

I am not sure I understand what means "run it". Same as "open it" ?? Well I opened it, nothing happened... I am doomed, or dumb...

Please help, I am missing a clue, I am sure it is right there in front of me but I cannot see it. :frusty:

Thanks

10 Nov 2008, 8:13 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

Did you move all the Zen Cart folders and files to the root from /ecommerce?

10 Nov 2008, 10:26 PM
#3
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

yes I did. ecommerce file is empty...

Now my URL is aheartfortheearth.com

11 Nov 2008, 2:42 AM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Problem when moving zen cart to another folder

Checkout your base url below

<base href="http://aheartfortheearth.com/public_html/" />

Better double check those configure.php files again.

The correct path is a web path, make sure you check the notes in the file for tips on the trailing / or not as well.

~Melanie

11 Nov 2008, 1:43 PM
#5
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

In my
includes/configure.php and
admin/includes/configure.php files,

if my zen cart is under /public_html directly, am I supposed to write, let say for example:
define('DIR_WS_CATALOG', '/public_html/');

or do I have to write:
define('DIR_WS_CATALOG', '//');

11 Nov 2008, 1:52 PM
#6
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Problem when moving zen cart to another folder

  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
11 Nov 2008, 2:20 PM
#7
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

Melaniiiie, please keep up with me just a little more. I really need your help.

What about for the
admin/includes/configure.php file,

what do I exactly write in there:
define('DIR_WS_ADMIN', 'public_html/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', 'public_html/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

I know this is not correct cause I don't have access with admin right now

Virginie

11 Nov 2008, 2:28 PM
#8
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Problem when moving zen cart to another folder

/public_html/includes/configure.php

  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

/public_html/includes**/admin/**configure.php

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

~Melanie

11 Nov 2008, 2:37 PM
#9
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

Thanks so much Melanie for following up.

I have quadrupled checked this 2 configure.php files and make sure I have exactly the path in your message.

At least, the website is working, but I don't have access to the admin.

I guess I still have a path wrong somewhere in what is for me worst than a haystack.

Where/What could it be ?? Any idea ??
(my tears are feeling my kitchen right now :cry:)

Virginie

11 Nov 2008, 2:47 PM
#10
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Problem when moving zen cart to another folder

Try this....

FTP to >> admin

open .htaccess in a notepad editor and add the following line to be VERY first in the file.

RewriteEngine off

Then open a new browser window and paste the following url in... Do not change it, as is.

aheartfortheearth.com/admin/

Try to login.

I think I know what is wrong and this will tell me for sure.

~Melanie

11 Nov 2008, 2:57 PM
#11
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

Yes, I did exactly that, and....

I was able to log in.

Now, I don't have a clue of what I have been doing !!!

Thanks so much for staying with me there Melanie.
(I am trying to dry the water in my kitchen right now !!!:P)

Virginie

11 Nov 2008, 3:12 PM
#12
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Problem when moving zen cart to another folder

This problem is created by 2 different canonical urls www/non in either your configure.php files or redirects... It will continue to work fine how it is, no worries.

~Melanie

11 Nov 2008, 3:25 PM
#13
aheartfortheearth avatar

aheartfortheearth

New Zenner

Join Date:
Oct 2008
Location:
Rochester Hills, MI
Posts:
63
Plugin Contributions:
0

Re: Problem when moving zen cart to another folder

Thank you soooooooooooooooooooooooooooooooooooooo much Melanie. You have no idea how much you helped me today. I was so stuck.

Everything is working perfectly now. I will post my website for review now, in the right section....

:clap:

Virginie
https://www.AHeartForTheEarth.com
Love the Earth... Wear it...

Act as if what you do makes a difference. It does.
~William James