Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2006
    Posts
    55
    Plugin Contributions
    0

    Default Getting errors trying to move files from redirect

    When I first enabled my cart the index file was under a directory named zcart. So I went to my control panel and did a redirect to .../zcart

    It all worked fine, but now I want to remove the redirect and have the index file in the main directory. I had tried to just move the index file into public_html but I get these errors

    -----------------------------

    Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/timetowi/public_html/index.php on line 26

    Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/timetowi/public_html/index.php on line 26

    Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/timetowi/public_html/index.php on line 26

    I am a newbie and do not want to mess up the site. I have it backed up but think I had some issues backing up the entire site.

    zzzoom

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Getting errors trying to move files from redirect

    It would appear that you set up Zencart in a SUB directory:-

    www.mywebsite.com/zcart/.

    You can't just "move" index.php across to your root directory - you need to move the entire directory structure - then you need to change settings in your config.php files and perhaps a few other places.

    There are tutorials on this (not sure where on this website, but they do exist)
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2006
    Posts
    55
    Plugin Contributions
    0

    Default Re: Getting errors trying to move files from redirect

    OK, thanks for the reply. Is this a fairly simple process to make adjustments to the config file?

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Getting errors trying to move files from redirect

    As I said, there are tutorials explaining how to move your site...

    It is not difficult to move it from a sub-directory back to the root directory, but you will need to do it according to a set procedure explained in the tutorial.

    Basically, it involves:-

    1. Moving the zencart installation (all the folders and files) UP A LEVEL in your file structure. This can be done quite quickly in C-Panel (or equivalent).

    You may wish to use the "COPY TO" feature rather than "MOVE TO". In this way, you retain the original structure, so if things go wrong you can revert to the original.

    2. When you have MOVED/COPIED the folders/files to the root directory, you will need to EDIT the configure.php files. Basically, these edits will remove the references to the sub-directory in all relevant paths.

    These will now be in:-

    public_html/includes/configure.php
    and
    public_html/includes/admin/configure.php

    Make sure the settings for the database are correct as well in the configure.php files, as well as the path to the cache folder (if your cache is set to files, not dbase)

    3. You may need to run a bit of script called "reset cache key" - see elsewhere on this forum, and the file that does this is in the downloads section.

    When everything is working and you have TESTED THE SITE FULLY - (usually after a few weeks) you should be able to safely delete the sub-directory where the original installation was put.
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2006
    Posts
    55
    Plugin Contributions
    0

    Default Re: Getting errors trying to move files from redirect

    Schoolboy,

    Thanks for the update. I can move the files up one directory, but I am not sure what I need to edit in the config.php file. I am a newbie, and not into scripting. I used to work mostly in Frontpage, but now use Dreamweaver and I get by with that. I can open the file in Dreamweaver, but is it editable in that program?
    I am looking for the paths. I see statemests such as this

    define('DIR_FS_CATALOG', '/home/"MyDomain"/public_html/zcart/');

    would I have to remove the zcart at the end?

    Any info appreciated.
    Sincerely,
    zzoom

  6. #6
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    6
    Plugin Contributions
    0

    Default Re: Getting errors trying to move files from redirect

    zzzoom;

    Check out the following link. It should give you the answers you seek.

    https://www.zen-cart.com/tutorials/i...hp?article=122

    Also, NEVER edit PHP files (or most others!) in Dreamweaver, FrontPage, etc. as they will add formatting characters and such which will make a mess. You must use a text editing program like Windows Notepad to make such changes. You really should get a good editor, such as Notepad++ (not related to Windows).

    Good luck!

  7. #7
    Join Date
    Jan 2006
    Posts
    55
    Plugin Contributions
    0

    Default Re: Getting errors trying to move files from redirect

    Thanks for the link, just got to get the nerve to make the move!

    tx

    zzzoom

  8. #8
    Join Date
    Jan 2006
    Posts
    55
    Plugin Contributions
    0

    Default Re: Getting errors trying to move files from redirect

    Am I on the right track? If I copy the entire directory of zencart up one directory, then ....

    EXAMPLE (in config.php)

    // 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', '/zcart/');
    define('DIR_WS_HTTPS_CATALOG', '/zcart/');

    Would I remove the zcart/ form the end of that line?

    tx

    zzzoom

 

 

Similar Threads

  1. v150 Getting error message when trying to play with files in Dreamweaver CS5
    By foxden vixen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jan 2012, 03:55 AM
  2. Getting 500 errors when trying to edit text
    By drago in forum General Questions
    Replies: 1
    Last Post: 26 Oct 2010, 08:45 PM
  3. Replies: 4
    Last Post: 18 Feb 2010, 10:47 PM
  4. Replies: 0
    Last Post: 12 Nov 2009, 05:41 PM
  5. Replies: 4
    Last Post: 10 Oct 2008, 09:22 PM

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