Moving site to another host
PermalinkI have just moved my site go Go Daddy.com. I moved the files and edited the site.php to connect to the database and seems to be working I think... However the site seems to be missing a css file or something as its not displaying properly. I have managed to get this to run on my local computer but when i upload the files it looks like thishttp://www.ardswebdesign.co.uk Hope someone can shed some light on this for me ;(
Thanks
Richard
The second block of code is aldready in my file. I have tried the first block as well, doesnt make ant diffterence :(
Richard
Once disabled backup the database then replace the one on godaddy with the one from your local with pretty urls disabled.
Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table 'ardswebdesign.PageStatistics' doesn't exist] in EXECUTE("insert into PageStatistics (cID, uID, date) values ('1', 0, NOW())") ' in /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw('mysql', 'EXECUTE', 1146, 'Table 'ardswebd...', 'insert into Pag...', false, Object(ADODB_mysql)) #1 /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb.inc.php(993): ADOConnection->_Execute('insert into Pag...') #2 /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb.inc.php(761): ADOConnection->Execute('insert into Pag...', Array) #3 [internal function]: ADOConnection->Query('insert into Pag...', Array) #4 /home/content/29/9503129/html/concrete/libraries/database.php(73): call_user_func_array(Array, Array) #5 /home/content/29/9503129/html/concrete/models/user.php(177 in /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
The database appears to be missing some tables and is not a complete backup.
I had to work with godaddy a little while ago and I know I ran into a lot of problems by uploading my files directly.
One way to solve those problems (it's actually explained on their website) is to upload the files zipped (not rared) and unzip them on the server in a temporary folder using godaddy's interface. When that's done, move the files to the root of the website.
Another problem you might have, because you have a mysql error: [1146... type problem is that you are developing on windows or mac and you have a godaddy linux hosting plan. In that case, many the problem is with mysql case sensitivity.
To understand and fix that problem you have a very good explanation and a free add-on herehttp://www.concrete5.org/documentation/how-tos/developers/mysql-dat... andhttp://www.concrete5.org/marketplace/addons/database-case-sensitivi...
Good luck
I can see what you mean, I cannot use the plugin locally because I am on an older version on concrete. Ok, so here is what I have done.
Uploaded the site files to godaddy using their interface and unzipped them to the / directory. I then downloaded the database from my old host without modifing anything and uploaded it to go daddy. The database is connecting fine but like i said in an earlier post it seems to be missing a css file because its not displaying propery. I have had a look at my htaccess file and it seems to be ok as well. Hope you can help me, this is my own site but I have a clients to move as well and I am dredding it.
Cheers
Richard
1- check in your theme path that you have the files:
/tools/css/themes/earthling_two/typography.css
and
tools/css/themes/earthling_two/style.css
If they are not there or they're just empty files then upload them again.
if they are there and they are not just empty files and the problem is not solved then:
2- From the Hosting Control Center click on the Settings tab then click on File Extension. change the .php (not php4 or php5) extension From PHP 5.x FastCGI to PHP 5.x And it should work.
Good luck with everything
Thanks everyone for you help, greatly appreciated :)
Richard
Its possible you either carried over a customized .htaccess file from your old host and some of the code needs to be removed or the standard concrete5 pretty urls code needs to be modified.
Take a look inside your .htaccess file. See if this code below exists.
If this code is already there try changing it to