Attempt to move site directory caused it to stop working...

Permalink 1 user found helpful
Hey guys-

I built up my site in a directory called /concrete/ of my site, so I could keep the old (static HTML) site up while I worked on the new C5 one. I finished the C5 site yesterday and tried moving it to the root directory today.. and it didn't work.
For a minute or two the home page (index.php) would display, but without any CSS styling, but none of the links (or pages like index.php/login) would work, with Chrome giving me a "Oops! This link appears to be broken." error. Then even index.php stopped working, giving me this error:

Fatal error: Class 'Loader' not found in /home/content/91/4302891/html/default.html on line 8

I followed the instructions on this tutorial the whole time:
http://www.concrete5.org/documentation/installation/moving_a_site...

so I do have a backup of the entire site and the database. Please help!

 
kirkroberts replied on at Permalink Reply
kirkroberts
Did you move ALL of your files en masse to the root directory (relative to their original position, of course)?

Did you update /config/site.php with your new DIR_REL path?
BASE_URL should by 'http://www.yoursite.com' and if you're on the root level DIR_REL would be '' (two single quotes with nothing in-between).
bjlange replied on at Permalink Best Answer Reply
I did both of those things, and it still didn't work :/ That being said, it's fixed now- I just did a fresh install and restored my backed up database and custom theme. Worked like a charm, though I had to reupload all the pictures, which wasn't too big of a deal for my site.

Thanks for the help!
kirkroberts replied on at Permalink Reply
kirkroberts
Cool. Glad it's working for you.
By the way, I'd think if you're using your original database that you could have copied over your original /files directory to have saved re-uploading the images (I believe the paths are stored in the database and would be "remembered").
No matter now!
bjlange replied on at Permalink Reply
Ah, that's probably right- I didn't think about doing that. Because the system "remembered" all the images, it just couldn't find them.
Anyway, if anyone else has to do a restore from DB, hopefully they'll find this and figure it out.