Forums / General Questions / Moving from sub-folder - desperately need help

Moving from sub-folder - desperately need help

Locked

Views: 2,076

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
6 May 2008, 11:27 AM
#1
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

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.:censored:

When I log into https://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!!

6 May 2008, 11:38 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

6 May 2008, 11:50 AM
#3
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

Re: Moving from sub-folder - desperately need help

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

6 May 2008, 2:27 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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?

6 May 2008, 3:01 PM
#5
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

Re: Moving from sub-folder - desperately need help

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 May 2008, 3:24 PM
#6
fairestcape avatar

fairestcape

Totally Zenned

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

Re: Moving from sub-folder - desperately need help

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...

6 May 2008, 4:24 PM
#7
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

Re: Moving from sub-folder - desperately need help

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.

6 May 2008, 11:23 PM
#8
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

Re: Moving from sub-folder - desperately need help

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.*

7 May 2008, 10:28 AM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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).

7 May 2008, 10:40 AM
#10
fairestcape avatar

fairestcape

Totally Zenned

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

Re: Moving from sub-folder - desperately need help

Mon3:

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.

8 May 2008, 3:44 AM
#11
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

Re: Moving from sub-folder - desperately need help

I now have all the data back and my ZC is up and running1

YAY :clap:

Thank you to everyone for all your help. In the end my host server helped me put backup data into database after new install.

PHEW!!