URGENT!! Site transfer error...
Permalink 1 user found helpful
hi all
I 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
I 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
Did all that - you were right, the folders were not completely writeable. Cleared out the cache folders, and after making the folders 777, the install screen showed all green (all ok).
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.
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.
...in IE, you get a plain 404. In Firefox, you get a "Page not found", but at least you can see the described php error below...
did the .htaccess file you had setup on your old site get moved too?
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 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.
Ryan
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...
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...
I imported the DB myself using phpmyadmin. Flawless import, no errors...but still, all I get is PAGE NOT FOUND...!!
this could also be a PATH_INFO problem.
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..
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..
Well, i get the same message...
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...
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...
as I wrote above, did you check PATH_INFO?
Hmm, i dont find PATH_INFO in phpinfo.
But what has server configuration todo with c5 page. Fresh install worked like a charm...
But what has server configuration todo with c5 page. Fresh install worked like a charm...
Here's what I did (Thanx a million mnkras!)
- 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
- 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
Thanx a load, Mnkras.
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
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
I was having the same problem as the original poster in this thread. This comment corrected my error as well.
Thanks.
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...