php and mysql help needed. :( Forum probs

Post Reply
User avatar
IXL
X-LANs
Posts: 61
Joined: Tue Feb 24, 2004 12:48 pm
Location: http://www.x-lans.co.uk
Contact:

php and mysql help needed. :( Forum probs

Post by IXL »

Guys, this is kind of embarrasing, but I dont care. I need to sort this out and im running out of patience.

Can you help? Im going mad and bald with fustration here. Your more familair with myphp etc ... :)

OK, heres the picture... Sorry if this is long winded but I want to explain this as best I can so maybe you can help.

I'm rather newish to PHP and MySQL however I think im begining to grasp some of it now.

Heres the story.

My website forum hosting provider has an PHPBB2 auto-install facility which installs PHPBB 2.0.8 within a few clicks etc. It creates the MySQL database and its up in no time at all. I have recently plucked up the courage to update to PHPBB2 Plus 1.52 which has a portal and forum incorporated.

All is well and its been running fine until a freaky thing happened this morning. I was trying to do a similar install to a different location using the auto install so I could trial out some themes for it (safely) when it came up with "There was an error with the install". Subsequently, it fuxed up the existing portal/forum so It couldnt connect to the database. This drove me nuts, but luckerly I had backups from the day before. I did look into the database but really couldnt see where the problem lies. Anyway, ive since had to drop the database and start again.

I had 2 backup types. One was from within the admin panel within the forum itself. (full backup) The other was a complete backup from phpMyAdmin.

The problem:

The problem I have is that Ive managed to auto-install and update a fresh install to PHP Plus and restore the tables into the new database using phpMyAdmin backup. So far it all looks as it should and is up and running. However only the portal data is correct. The forum is blank. !!! The strange thing is that all the members and number of posts in the forum (1000 odd) are showing in the stats box of the portal, but when I click onto the forum, its just a blank forum as if it was a fresh install. No posts at all.

After this I dropped the tables in phpMyAdmin for the database and tried restoring it in phpMyAdmin using the backup I did from the forums own admin panel. This just times out and takes about 15 mins to say that. Ive tried this 5 times now, same result. I have also tried restoring using the forums admin panel php but eventually it says No File Was Uploaded.

Ive gone over and over and over all the admin panel settings and they all point to the right location. I really cant seem to see whats going on. Whats even stranger is that an Annoucement News Article is showing in the home page of the portal which is posted via the forum, but I cant access it from the forum because its blank.

Its as if the data is there, but the forum isnt looking for the data in the right place.

Anyone here able to help or suggest anything?

:what :roll :what

Heres a few screeny's.
Note the top posters box in the first image and the forum in the second image.
Image
Image
http://www.x-lans.co.uk < Kent LAN Gaming Community

There are 10 types of people in this world, those that understand binary and those that don't.
User avatar
CyberDrac
Red Squad
Red Squad
Posts: 2994
Joined: Sat Mar 01, 2003 5:02 pm
Location: Gillingham, Kent, UK
Contact:

Post by CyberDrac »

I'll leave this well alone until KF gets home from work ... he thinks in php and SQL, it's like a first language to him ... he also speaks the binary language of moisture vaporators ;)

CD
Image
Guest

Post by Guest »

OK mate thanks for that.

Just for the record, the post data for the forums is in the database still in the database. Ive extracted the phpbb_text_data table via PhpMyAdmin and is shows all our post information. So somewhere along the line its not pointing to that data.

If I had time and a connection id try another install, but tbh, im quite certain ive done nothing wrong. It could be a glitch with the plus 1.52...?

If push comes to mega shove, I can do one of two things but it means loosing about a weeks work and post...
User avatar
IXL
X-LANs
Posts: 61
Joined: Tue Feb 24, 2004 12:48 pm
Location: http://www.x-lans.co.uk
Contact:

Post by IXL »

It logged me out again... :( lol
http://www.x-lans.co.uk < Kent LAN Gaming Community

There are 10 types of people in this world, those that understand binary and those that don't.
User avatar
Kanonfodda
Red Squad
Red Squad
Posts: 5415
Joined: Mon Aug 19, 2002 3:12 pm
Location: Flag Room (Well most of meh, some landed on the ramp though)
Contact:

Post by Kanonfodda »

Hello matey, sorry it took so long to respond.

I don't know if you have resolved this or not, if not, heres the solution I found to the exact same problem.

As far as I am aware (this is certainly true of my host) there is a limit to the size of the file you can upload containing the SQL to execute, in both phpmyadmin and teh forum restore tool.

I have Never got a restore to work using the forum tools (I put this down to the hoster, rather than the forums). However, I have succesfulyl restored a database. You won't like how I did it though. As you say in your post, phpmyadmin times out before it can finish uploading/processing the file, so the solution is (you guessed it yet?) to break the file up into segments that the hosting server can handle (typically a table to each segment).

This does take a little whie to complete, but it is the only solution I have found.

If you don't feel confident, I am happy to help in any way I can. Be it carrying out the restore, or simply breaking up the backup into managable chunks for you.

anyway, thats the only solution I have found. Hope this helps matey.

KF

oh, and all forums except the troubleshooting are now registered users only for posting.

oh, if you want me to look at the setup, I am happy to do this as well.
If it bleeds, we can fry it :0D
Image
User avatar
IXL
X-LANs
Posts: 61
Joined: Tue Feb 24, 2004 12:48 pm
Location: http://www.x-lans.co.uk
Contact:

Post by IXL »

Im too tired to explain the latest. But will do later. Thanks for the help / ideas.

I'll let you know how i get on. :)
http://www.x-lans.co.uk < Kent LAN Gaming Community

There are 10 types of people in this world, those that understand binary and those that don't.
Guest

Post by Guest »

Hi fellas, just to let you know I have swapped hosts now and things are back up. Ive temp'd a forum from a backup from about a week ago and hope to update to Plus 1.52 as and when I get the time.

I never did manage to solve the problem I had, the only way I managed to get the existing board back up was via manage mysql and running queries to restore each table one by one, so thanks for that tip :)

Mind you it was a good excercise on understanding some of it. Think Ive learned a lot over this little episode. :)
User avatar
Kanonfodda
Red Squad
Red Squad
Posts: 5415
Joined: Mon Aug 19, 2002 3:12 pm
Location: Flag Room (Well most of meh, some landed on the ramp though)
Contact:

Post by Kanonfodda »

No problem matey, glad I could help :D
If it bleeds, we can fry it :0D
Image
Post Reply