Serialize, Rebuild, Migrate,
benjo4u
Joined: 2006-08-21
Posts: 18 |
Posted: Wed, 2007-03-28 13:14 |
I backed up all my pictures to my hard drive, then, because my gallery kept hanging, I backed up my mysql and went to repair the db, but I accidently deleted it and apparently didn't properly back up the mysql either, yikes. This under g2 nightly. so, I've reuploaded the pictures to another directory and installed it as g1. I want to write a script that rebuilds the album.dat files so that I can import to g2 because when I use the import from local server, it sometimes stops partway through and says "An item with the same name already exists.", and doesn't complete the import of the directory. I have a script that reads the directory structure and file structure of my albums directory. I believe I could use that with php serialize to rebuild the albums.dat and photos.dat files. I've looked through the lib files in g1 and could probably use those by calling them with the inputs from my directory script. I was hoping someone could point me to which php lib or class files e.g. albumitem.php which I should include (require) in my rebuild dat script, and which files I should rebuild, or just how to run the serialize script or the functions to copy. I couldn't figure out the g2add.pl script as I don't have shell access. Thanks |
|
Posts: 18
I saw in this post http://gallery.menalto.com/node/27358 that if I edit the config.php to read
it will not timeout, event though it breaks some links (such as gallery/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=7&g2_return=%2Fmain.php&g2_returnName=album )
It still timesout