Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Uk
    Posts
    79
    Plugin Contributions
    0

    Default Renamed Folder Problem

    Hi

    I've been requested by my boss to change the name of the directory from /zen to /shop and simple as i thought i'd just rename it, but here's the problem. Fresh Install Screen. Is there any way I can alter a file so that zencart knows which directory its in.

    Cheers
    J#xx

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    You will need ONLY to make changes to the two configure.php files

    includes/configure.php

    and

    admin/includes/configure.php

    In these two files (same name but each is DIFFERENT from the other), you will see the path references to

    /zen/

    find all of them and change them to

    /shop/

    Make sure that the new directory on your server is called:

    shop

    configure.php files are usually fully write-protected (CHMOD 444) so before you edit them, you may need to change CHMOD to 655 or higher.

    Use a PLAIN TEXT EDITOR to edit php files - such as Crimson Editor.

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    After you have edited the configure.php files, saved them and FTP'd them back to their respective folders on the server, you should run the:

    fix_cache_key.php file

    ... available in the Free Software Addons section (link above)

    Simply unzip this file and FTP it to your

    /shop/

    directory

    Then run the file by typing this into a browser window:

    www . mywebsite . com / shop / fix_cache_key.php

    Remember to DELETE the file after you have re-set the cache.

  4. #4
    Join Date
    Dec 2008
    Location
    Uk
    Posts
    79
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    Thanks Fairestcape, saved my life :-) However I've lost my template and I can't get any templates to work. Do you know where they are and how do I get them back ?

    Cheers
    J#xx

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    What did Oscar Wilde say:

    "To lose one parent is unfortunate. To lose BOTH parents is irresponsible!" (From The importance of being Ernest).

    How did you LOSE your template?

    All you had to do was change the name of the directory from /zen/ to /shop/ and edit the configure files...

    What else did you do?

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Renamed Folder Problem

    In the configure.php files there's a section:

    PHP Code:
    // * 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''/');
    define('DIR_WS_HTTPS_CATALOG''/');

    define('DIR_WS_IMAGES''images/');
    define('DIR_WS_INCLUDES''includes/');
    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_DOWNLOAD_PUBLIC'DIR_WS_CATALOG 'pub/');
    define('DIR_WS_TEMPLATES'DIR_WS_INCLUDES 'templates/'); 
    Have you got this section intact? - particularly the last line:

    PHP Code:
    define('DIR_WS_TEMPLATES'DIR_WS_INCLUDES 'templates/'); 
    (NB: Yours will probably (ought to) show /shop/ in the top bits.)

 

 

Similar Threads

  1. v150 renamed admin folder after upgrading
    By jansant in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 22 Mar 2012, 07:00 AM
  2. Renamed Admin Folder - Issues
    By bigdiogi in forum General Questions
    Replies: 7
    Last Post: 23 Feb 2011, 11:53 PM
  3. Renamed admin folder Oddity
    By buildingblocks in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Dec 2009, 03:40 AM
  4. Renamed Admin folder but "upload to directory" no update of new folder
    By ruriimasu in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Apr 2009, 10:29 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