URGENT!! Site transfer error...
Permalink 1 user found helpfulI just moved my concrete5 site (autotempel.c-ex-c.org) to the live host (www.autotempel.ch). Now I get this error:
----------------------------------------
Page Not Found
No page could be found at this address.
Fatal error: Call to a member function getCollectionID() on a non-object in /var/www/www.autotempel.ch/htdocs/concrete/models/area.php on line 120
-----------------------------------------
What the heck??
What I did:
- Make a SQL dump
- downloaded the entire pagetree
- changed all the attributes in site.php (new host tohttp://www.autotempel.ch, no subfolder, new database name to autotempel_ch, database username and password)
- sent the SQL dump to the host
- uploaded the entire site (with the new site.php) to the new host
The host wrote me that the dump has been inserted, and the DNS renewed - it would take between a few mins and a few hours for the new site to appear..
This was 5 hours ago!!
What went wrong here? I'd greatly appreciate any help, since this is the live site of the company I made the site for...
RizzzO
Put the site.php back on, and I still get the same error...
What now?
The site is currently reachable on www2.autotempel.ch, by the way.
I wouldn't expect it to make your site die like this if it didn't, but double check that.
Here's my thoughts on what's happening. Your site is redirecting all requests to the concrete 404 page (/concrete/single_pages/page_not_found.php). When concrete is trying to render this page, it's not finding the page's (the actual 404 page's) records in the database so concrete doesn't return a valid page object.
I would bet that your database didn't get moved correctly and that your Collections, Pages or PagePaths tables are empty.
I had no .htaccess file, not even on the old setup.
I just deleted the whole thing, and re-uploaded it again. I also send a new dump of the DB to the host. Now I get a plain 404, no error anymore.
I'm guessing you're right about the db - something must be rotten there. The host is now setting up phpmyadmin access for me, so I'll be able to do my own .sql import. Let's see how that works out...
Did you check that? If you aren't familiar with it, please create a file "info.php" with the content: "<?php phpinfo() ?>" on the "live server" and send us the link to it..
1. I installed it on my working machine with windows - everything worked superb
2. I tried to move it to my server (linux) - i tried to import database, but no go becouse of the capitalization of names of database.
3. I installed fresh copy on server (linux). Everithing works. I hand edited export of database and succesfully imported database on server
4. Try it and got the same massage as Rizzzo...
The page has to be tommorow morning up & running. I really dont know whats wrong, but this (migrating site) should be an easy step...
But what has server configuration todo with c5 page. Fresh install worked like a charm...
- emptied db
- deleted all folders on target server
- installed a clean copy of c5 5.3.2 on target server, using my empty db
- emptied db again, imported the dump from my old site
- copied the following files/folders from the old site to the new site:
- themes
- files
- downloads
- packages
and from \concrete\themes\default\ the file main.css (for my styles), as well as header.php and footer.php from the subfolder \elements.
Works like a charm now.
I still uploaded the info.php, in case anybody finds a problem there...
http://www.autotempel.ch/info.php (should be up within a few hours, for now it's still www2).
thanx!
RizzzO
Funny, I could swear I read in some post in this forum that you had to leave "/", even if your installation was in the root directory.
Can't find the post though, for now..
Anyways, it works now, and the owner is pretty happy!
greets
RizzzO
Thanks.
Then go through and delete everything in /files/cache and /files/cache_objects - not the folders themselves, just everything in them.
Put your site.php back again and see if it clears up...