Zen Cart Logo
Forums / General Questions / Moving cart to root dir. problems

Moving cart to root dir. problems

Locked

Views: 1,775

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
7 Feb 2010, 7:54 AM
#1
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Moving cart to root dir. problems

Zen 1.3.8a

http://www.xcergy.com
I set this cart up using a start directory of /catalog/

I followed the instructions to move the cart to my root directory.
~ Changed sessions dir
~ modified configure.php in admin/includes & /includes
~ Made those two files read only.

Problem:

The /images/ folder produces 404 errors
The Attributes section has no information (empty database)

For the pictures, I recopied the files into /catalog/images/ , changed the configure.php files to reflect the directory change, and the pictures came back, but I would like to use the /image/ root directory location.

These are the only two errors I have found so far ... there may be more as I add product :-(

Keith
aka
xcergy

7 Feb 2010, 8:15 AM
#2
rainmist avatar

rainmist

New Zenner

Join Date:
Jun 2007
Posts:
71
Plugin Contributions:
0

Re: Moving cart to root dir. problems

I think you can backup database and front files. Then install in root dir directly.

8 Feb 2010, 3:14 AM
#3
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Re: Moving cart to root dir. problems

Ahhhh
It's already moved. What now?

9 Feb 2010, 12:34 AM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Moving cart to root dir. problems

Link?

and post your catalog configure.php WITHOUT the database info.

~Melanie

9 Feb 2010, 3:12 PM
#5
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Re: Moving cart to root dir. problems

mprough:

Link?

and post your catalog configure.php WITHOUT the database info.

~Melanie

The site is https://www.xcergy.com

admin/includes/configure.php lines 38-69:

// 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_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/users/web/b1441/fy.xcergy/admin/');
define('DIR_FS_CATALOG', '/home/users/web/b1441/fy.xcergy/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

(same changes made to /includes/configure.php where needed)

9 Feb 2010, 3:16 PM
#6
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Moving cart to root dir. problems

Your images work fine for me. As far as the attributes, how did you backup and then import the database..... And why?

You see moving it to the root does not require you to change anything in the database info....

Only the paths are updated in your configure.php files.

So just hook it back up to the original database and you are good to go.

~Melanie

10 Feb 2010, 4:52 AM
#7
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Re: Moving cart to root dir. problems

mprough:

Your images work fine for me. As far as the attributes, how did you backup and then import the database..... And why?

You see moving it to the root does not require you to change anything in the database info....

Only the paths are updated in your configure.php files.

So just hook it back up to the original database and you are good to go.

~Melanie

The images you saw were not from the /images/directory. I did a workaround and had them in a different directory so that the cart would work.

~ update ~

I said to heck with it and started back from scratch. I uninstalled zen and dumped the DB.

So now I have a fresh copy with a new DB.

Now I have my first item up, and the image does not show up .... in fact all images in the /image/ directory come up with 404 file not found errors. See for yourself:
http://www.xcergy.com/images/flyball/209b204a.jpg
it is the same photo as on my other website:
http://www.thedumbdog.com/catalog/images/flyball/209b204a.jpg
or this one from the root of /images/
http://www.xcergy.com/images/1_small.jpg

I am beginning to think this is not a cart problem, but an ISP problem. .htaccess files have no reference of this directory, so I don't think that is a problem.

Thoughts?

TIA

10 Feb 2010, 8:10 AM
#9
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Re: Moving cart to root dir. problems

mprough:

There are many that work http://www.xcergy.com/images/hm_freeyellow21.gif

This one however, 1_small.jpg, does not exist, thus 404

See for yourself http://www.xcergy.com/images/

~Melanie

The plot thickens. hm_freeyellow21.gif does not exist on my server. I did an FTP file search and it was not there.
1_small.jpg was.

How did you find that gif file that worked?

10 Feb 2010, 9:09 AM
#10
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Moving cart to root dir. problems

10 Feb 2010, 3:03 PM
#11
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Re: Moving cart to root dir. problems

mprough:

Here http://www.xcergy.com/images/

~Melanie

Thank You!

12 Feb 2010, 10:29 PM
#12
xcergy avatar

xcergy

Zen Follower

Join Date:
Feb 2009
Location:
Landrum SC
Posts:
141
Plugin Contributions:
0

Re: Moving cart to root dir. problems

Update:

Freeyellow.com uses the root/images/ directory as a virtual directory. As such, Zen Cart users must choose a different directory name to hold cart images.

~ rename the /images/ directory

~ In admin/includes/configure.php :
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
and
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

should be renamed to the new directory name.

~ Next; in the file /includes/configure.php

define('DIR_WS_IMAGES', 'images/');

should be renamed to the new directory name.

[end of revisions]