Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2008
    Posts
    50
    Plugin Contributions
    0

    Default Moving from sub-folder - desperately need help

    I am trying to move my shop into the main root directory after adding all stock, customisations etc. I followed the tutorial for this and now cannot access my admin and I seem to have lost access to everything.


    When I log into www.mysite.com.au I get this warning

    Warning: main(../../new/includes/application_top.php): failed to open stream: No such file or directory in /home/myspace/www/catalogue/index.php on line 26

    Fatal error: main(): Failed opening required '../../new/includes/application_top.php' (include_path='.:/usr/share/pear') in /home/myspace/www/catalogue/index.php on line 26

    PLEEEEEEEEEEASE Help!!

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Moving from sub-folder - desperately need help

    Did you alter BOTH config files to reflect this move
    i.e.
    /admin/includes/configure.php
    /includes/configure.php
    BACK UP BOTH FILES BEFORE ALTERING.

  3. #3
    Join Date
    Apr 2008
    Posts
    50
    Plugin Contributions
    0

    Default Re: Moving from sub-folder - desperately need help

    Yep - have tried installing back up - no joy!!

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Moving from sub-folder - desperately need help

    It looks like Zencart is looking in a directory named 'new' for files. Is that the name of the directory you originally installed Zen to?

    If so, your changes to the configure.php files don't seem to be taking. Did you set the permissions on those files before uploading?

  5. #5
    Join Date
    Apr 2008
    Posts
    50
    Plugin Contributions
    0

    Default Copying product info

    OK I stuffed up moving my ZC into the root folder - Think Dreamweaver didn't transfer the htaccess files, and those I didn't back up!! - would this have made a difference??

    Anyway am going to install ZC directly into the root folder this time - I am taking no chances.
    I was wondering if there is any way I can retrieve the product info that I spent hours adding??

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

    Default Re: Copying product info

    Your database is probably intact, as it is generally not affected if you move the core files around between folders.

    If you do try a new install into the root folder, then create a new database first - as you did for the first install, and when the install is complete, edit the two configure.php files to point everything to the original database.

    The new install will read all data off the original database - including any settings, customer data, product data, etc...

    If you made stylesheet changes, you could also try grabbing a copy of the stylesheets from your original (sub-folder) site, and overwriting the stylesheets in the new install...

  7. #7
    Join Date
    Apr 2008
    Posts
    50
    Plugin Contributions
    0

    Default Re: Copying product info

    I know I am a moron - but how would I edit the two configure.php files to point everything to the original database?? Is the database file the db file?? - Great to know that it might be possible!!

    I will definitely copy stylesheets and custom templates etc.

  8. #8
    Join Date
    Apr 2008
    Posts
    50
    Plugin Contributions
    0

    Default Copying product info from database

    I have posted this elsewhere also, but hoping to get a quick response!!

    I had problems transferring my htaccess files when moving to root folder - anyway the bottom line is I am reinstalling zencart into the root folder and was wondering how I could get all the stock information from the old database to put into the new one without having to do all that work again!!!




    MODERATOR NOTE: The separate related threads have been merged into one for continuity.

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Moving from sub-folder - desperately need help

    If you do try a new install into the root folder, then create a new database first - as you did for the first install

    If you do this, then, after your new installation is complete, open admin/includes/configure.php and includes/configure.php and change the database name and, if necessary, the database user name and login, to your old database (the one with all the products in it).

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

    Default Re: Copying product info

    Quote Originally Posted by Mon3 View Post
    Is the database file the db file?
    The database is not a "file" and resides in a completely different "place" on the server. You will therefore not "see" any database in your ZC directories.

    Think of it as a "container" of information. Your php code is an "instrument" that is used to "dip into" that container, pull out bits of data, cobble it together in some html, and then throw it back to the browser.

    It's like a child having a large toybox of coloured plastic shapes. I could say to the child:-

    "Get a yellow triangle and a blue square out of your box and put the triangle to the left of the square on the table over there." (My instructions to the child are like your php code, and the child responds by performing the task, taking out of the data-set and positioning those bits that my instruction refers to.)

    Take a good look at your configure.php files. Embedded in this code are instructions about where the "container" (database) is situated, what it's called, and who has permission to "dip into" it.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Moving a store to the root directory from a sub-folder
    By Hell Guapo in forum General Questions
    Replies: 3
    Last Post: 21 Sep 2011, 05:51 PM
  2. Moving Site from Sub-folder to Root
    By willchen88 in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 7 Aug 2011, 06:47 AM
  3. Problem moving folder from sub-root to root
    By andycowboy in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Jul 2009, 02:15 AM
  4. Moving from test folder to live folder on web server?
    By Gewehr 43 in forum General Questions
    Replies: 13
    Last Post: 4 Jun 2009, 10:12 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