Missing message content and possible fix
Moderator: Akira
- Akira
- Eagle / Forum Admin
- Posts: 1509
- Joined: Tue Feb 25, 2003 12:52 pm
- Location: Ontario, Canada
- Contact:
Missing message content and possible fix
Well,
I think I've determined the cause, the fix may work, but not do us any good in one sense.
Seems that each topic, has a database entry for the poster_id (which would be a unique number to your username).
phpBB doesn't know to display message content, if the poster_id is a non-known value. All messages that are not displaying, I believe have a poster_id of -1 which usually indicates a deleted account I think.
Well, in phpMyAdmin, I could do a mass change of the -1 value to a single numeric value for an account, such as my own, the # 3. I think that would display message content, but it will look like I posted all those messages.
I'm just thinking of this in theory, no way of knowing it will work without doing it.
I think I've determined the cause, the fix may work, but not do us any good in one sense.
Seems that each topic, has a database entry for the poster_id (which would be a unique number to your username).
phpBB doesn't know to display message content, if the poster_id is a non-known value. All messages that are not displaying, I believe have a poster_id of -1 which usually indicates a deleted account I think.
Well, in phpMyAdmin, I could do a mass change of the -1 value to a single numeric value for an account, such as my own, the # 3. I think that would display message content, but it will look like I posted all those messages.
I'm just thinking of this in theory, no way of knowing it will work without doing it.
not sure what OS this is on, but if i had the right permissions, externally.. (i could possibly even write it off-server....)...i could do a small script that did a select and then update based on every single thread, of course it would have to be some kind of loop inside of a loop kinda thing...
when you look at the list of threads inside of each 'forum', as it were.. you see the Author field showing the correct author in each case... so all that you need to do is change the other table to reflect the author (whatever id field is being used there).... make them match....
as far as the idea goes, i think you are onto something, and i think the above idea may be a way to approach it... if you need any help or anything, let me know....
when you look at the list of threads inside of each 'forum', as it were.. you see the Author field showing the correct author in each case... so all that you need to do is change the other table to reflect the author (whatever id field is being used there).... make them match....
as far as the idea goes, i think you are onto something, and i think the above idea may be a way to approach it... if you need any help or anything, let me know....
- Baron[CotC]
- Caesar
- Posts: 1711
- Joined: Wed Feb 26, 2003 1:29 am
- Xfire Username: redbaroncotc
- Location: Alberta, Canada
- Contact:
RedBaron wrote:Dont mean to sound like a broken record but why dont we just wipe her clean and regroup?
Might be a good idea, but there is a lot of good links, set up info etc. We would have to re-do all that everytime a "newbie" comes in. (I'll probably get flak for that one).
Have a great day all... LONG WEEKEND ahead. Yeha.
A good plan, violently executed now, is better than a perfect plan next week. A pint of sweat, saves a gallon of blood. No poor bastard ever won a war by dying for his country. He won it by making other bastards die for their country.
George Patton
George Patton
I gotta disable forum for 5 minutes
Don't worry about the GL postings. I can take care of all that. It's not too much to repost it all, anyways. I think this time I'll just wrap it all up into one big post instead of so many little ones. Got to be a bit much, the more stuff I thought of... I call Do Over!
SIDENOTE: If it would help for the future, or if you all think it might be okay, I can setup a small shell script to a complete database dump of everything, and have it run daily ... and keep say, the past 5 days worth at once ... so if something happens one day and we don't even notice it, we can roll back the data to a couple days ago.
- Akira
- Eagle / Forum Admin
- Posts: 1509
- Joined: Tue Feb 25, 2003 12:52 pm
- Location: Ontario, Canada
- Contact:
I can do backups, I was not really before, as I wasn't expecting this to happen.
phpBB is/has been so full of holes it seems. Heck, I have had older versions of other forums running, and never touched by a hacker.
I just figured that some sort of message recovery (due to current issue) would have been more straight forward. There's no help at phpbb.com forums on it.
phpBB is/has been so full of holes it seems. Heck, I have had older versions of other forums running, and never touched by a hacker.
I just figured that some sort of message recovery (due to current issue) would have been more straight forward. There's no help at phpbb.com forums on it.