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

G2 version: 2.3sv (latest nightly)
G1 version: v1.5.5-pl1
G1 character set: ?
PHP memory limit:
--
PHP version (e.g. 4.3.11): 4.3.11
PHPInfo Link (see FAQ): http://benjaminerica.com/testphp.php
Webserver (e.g. Apache 1.3.33): Apache/1.3.33 Server
Database (e.g. MySql 4.0.11): 5.0.18
Activated toolkits (e.g. NetPbm, GD): imagemagik, netpbm, gd, mplayer, ffmpeg
Operating system (e.g. Linux): linux
Browser (e.g. Firefox 1.0): firefox 2.0.0.3

 
benjo4u

Joined: 2006-08-21
Posts: 18
Posted: Wed, 2007-03-28 16:09

I saw in this post http://gallery.menalto.com/node/27358 that if I edit the config.php to read

Quote:
$gallery->setDebug('immediate');

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