Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Moving cart to root dir. problems

    I think you can backup database and front files. Then install in root dir directly.
    LED flood Lights - Energy saving! Eco-friendly! Long lifespan.
    Bollard Lights - Excelllent design.

  3. #3
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: Moving cart to root dir. problems

    Ahhhh
    It's already moved. What now?

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Moving cart to root dir. problems

    Link?

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

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  5. #5
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: Moving cart to root dir. problems

    Quote Originally Posted by mprough View Post
    Link?

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

    ~Melanie
    The site is 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)

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default 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
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  7. #7
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: Moving cart to root dir. problems

    Quote Originally Posted by mprough View Post
    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/im...l/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

  8. #8
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Moving cart to root dir. problems

    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
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  9. #9
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: Moving cart to root dir. problems

    Quote Originally Posted by mprough View Post
    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. #10
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Moving cart to root dir. problems

    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Trouble Moving Cart to Root Folder
    By anysigns in forum Installing on a Windows Server
    Replies: 15
    Last Post: 29 Oct 2012, 05:03 AM
  2. Problems moving from subfolder to root
    By innovcap in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 23 Jul 2012, 04:51 PM
  3. Moving Zen Cart to root folder
    By trialsmom in forum General Questions
    Replies: 2
    Last Post: 2 Oct 2008, 10:12 PM
  4. Moving Zen Cart to my root folder
    By apotterdd in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Sep 2008, 04:30 AM

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