1 album dissapeared after manually editing a .dat file

boii

Joined: 2003-08-25
Posts: 2
Posted: Mon, 2003-08-25 22:11

(apologies, posted in wrong forum initially)

hey guys.
on one of my users sites, someone had posted a comment that included a phone number. for privacy reasons, i opened up vi and i manually edited the respective:

album.dat
album.dat.bak

and made the phone number xxx-xxxx.
now for some reason when you view his gallery website, that album doesnt appear. its just not listed at all. i even changed it back to the number. but its still gone. i have no idea why this happened.

i know the album still exists, all the pictures etc. i cant login to his gallery via the gallery login as i dont know the password. but i'd appreciate some insight as to how to remedy the situation. i feel quite bad.

any suggestions?

cheers.
ken

----
Gallery URL (optional but very useful): private unless neccessary.
Gallery version: 1.3.1
Apache version: 1.3.27
PHP version: 4.3.1
Operating system: fbsd 4.8-stable
Web browser/version (if applicable): n/a (but i looked in ie)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-09-09 16:32

OK, you've obviously corrupted the file. You did save a backup before editing,didn't you?

:-)

You'll need to hand edit the file again to repair it. Most likely you replaced a string with one of a different length. The dat file includes the length of each object before the object, so you have to make sure they match.

This is a really useful tool that will help you fix your files: http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=PHP%20Deserializer