13-Jun-2011, 08:46 AM
Hello again
Hm, not sure if it belongs in here or into this forum at all, but I had a very - first time - weird experience yesterday.
This has to do with transferring sites, I believe? not sure
I was working on my site, fixing some HTML code cleanup to comply with W3C and - out of the blue, it just fell off the ceiling right onto my forehead, all pages seemed to have lost most of its design. Some were almost complete empty!
No idea what happened (PhP collapse, DB collapse or whatever) I went on checking on some other sites I have installed locally and they all - showed absolutely normal.
Then I downloaded the entire site from my server and replaced it locally with the gobbled up one and ... voila, everything back to normal ...
But Hang On my database connection online differs from the one local. No problem, smart as I am (oh that smells bad ) I replaced the comments/includes/db/connect.php - that should do ... returns that after all, I am not that smart ...
Loading the pages now show "no" comments AND no form etc., at all, but a notice that there was a problem with connecting to the database ...
Now I'm stuck ... what other file(s) than "connect.php" do I need to change to get my connection back to normal?
However - and here my ignorance becomes really transparent.
I can log into the admin! So - Database connection after all seems no problem at all.
The admin shows 7 posts. Correct!. BUT! I downloaded the site from online and there were only "one" post.
Shouldn't now just show all these 7 posts from my local database? At the end, the posts are not hard-placed on the pages but generated through the database. So basically speaking.... whatever I had online, well, that is still online, but the pages (after downloading) should be showing just the form, etc. or - like in my case - the seven posts stored locally? Correctly wrong or falsely correct?
So where is this "DB" connection error resulted from and ... yeah, uh, hm - ... I don't know what I'm missing?
Thanks a lot to everyone who can push my brain back into position again
Hm, not sure if it belongs in here or into this forum at all, but I had a very - first time - weird experience yesterday.
This has to do with transferring sites, I believe? not sure
I was working on my site, fixing some HTML code cleanup to comply with W3C and - out of the blue, it just fell off the ceiling right onto my forehead, all pages seemed to have lost most of its design. Some were almost complete empty!
No idea what happened (PhP collapse, DB collapse or whatever) I went on checking on some other sites I have installed locally and they all - showed absolutely normal.
Then I downloaded the entire site from my server and replaced it locally with the gobbled up one and ... voila, everything back to normal ...
But Hang On my database connection online differs from the one local. No problem, smart as I am (oh that smells bad ) I replaced the comments/includes/db/connect.php - that should do ... returns that after all, I am not that smart ...
Loading the pages now show "no" comments AND no form etc., at all, but a notice that there was a problem with connecting to the database ...
Now I'm stuck ... what other file(s) than "connect.php" do I need to change to get my connection back to normal?
However - and here my ignorance becomes really transparent.
I can log into the admin! So - Database connection after all seems no problem at all.
The admin shows 7 posts. Correct!. BUT! I downloaded the site from online and there were only "one" post.
Shouldn't now just show all these 7 posts from my local database? At the end, the posts are not hard-placed on the pages but generated through the database. So basically speaking.... whatever I had online, well, that is still online, but the pages (after downloading) should be showing just the form, etc. or - like in my case - the seven posts stored locally? Correctly wrong or falsely correct?
So where is this "DB" connection error resulted from and ... yeah, uh, hm - ... I don't know what I'm missing?
Thanks a lot to everyone who can push my brain back into position again