Problems with Gallery

Schoon

Joined: 2002-09-10
Posts: 9
Posted: Tue, 2002-09-10 21:31

Ok, I have really struggled with posting this message because i'm always one to read as much Documentation as possible before asking for help, but here it goes.

I have a fairly new install of PHP/Apache running on a Win 2k server box and just recently added Gallery to it as a module. The configuration was successful as was the install of jhead and netpbm. The first thing that happened was an issue creating albums, I simply could not see a window for it. Now, somehow I have 3 unnamed albums in there and when I try to delete the window comes up to delete I click delete but the window just sits there blank and does not close.

You can see my handywork at http://www.schoonsplace.com/index.php , use the gallery link in the Places to Go box on the right hand side of the screen and not the one in the middle as that's a link to my old gallery and what I am trying to migrate.

Thanks and let me know if you need more info.

Schoon

 
Schoon

Joined: 2002-09-10
Posts: 9
Posted: Tue, 2002-09-10 22:52

Ok, fixed my own problem this time. I went into the php.ini file and modified the

session.save_path = /tmp

and pointed it to a directory I created in my http root directory.

Now all my troubles seem to have gone away.

Thanks for reading.

Schoon

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2002-09-10 22:57

Hi! You're right... :smile: Just to state the obvious, on the win32 edition of php, the php.ini has an error. The tmp directory, for sessions, points to /tmp - a directory that doesn't exist on the win32 platform.

Change it to %systemroot%temp, or any other accessible directory. I would advice you to change it to the above, since your webfolder will be filled with session data, which you don't need (If you take backups - i mean... :smile:)

I'm not sure if the system variable %systemroot% works in the php.ini file at all, it usually is c:winnttemp if its w2k - c:windowstemp in XP.

[edited to clearify...] :razz:

rgrds,
h0bbel

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Wed, 2002-09-11 07:57

I believe it actually states in the php distributed php.ini file that this
value is invalid under windows and WILL need to be changed. I guess
people never get that far. Also %systemroot% is an NT-ism, I believe
%windir% works for the 95/98/ME versions. But you're better off
just hard setting it really.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2002-09-11 08:14

You're probably right. :smile: Anyhow, I just wanted to get this "published" - Hopefully someone picks it up, and get things sorted before posting. :smile:

 
Schoon

Joined: 2002-09-10
Posts: 9
Posted: Wed, 2002-09-11 19:16

Yes, I did get thatfar in the documentation, that's where I figured out my mistake. I just posted before I read because I know it takes time to get a reply sometimes. I'm glad that these boards are active enough to get help in a timely manner as we all want to get our stuff working as quickly as possible. On a related (somewhat) note, does anyone know how to take an existing directory with sub directories full of photos and batch process them into Gallery?

Example...

d:schoonsplacephotosgallery1
d:schoonsplacephotosgallery2
d:schoonsplacephotosgallery3

Push d:schoonsplacephotos as a top level directory and have the program create seprate galleries for each sub folder at that level? It is going to take me a long time to process them through the add photos front end otherwise.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-09-12 11:09

Well, gallery can't handle recursive uploads atm.
Nor can the perl adddir.pl script. The script could be
modified to do it if you know some perl. I think gallery-remote
has this option on it's TODO list, but I'm not sure.

This may also be on the G2 TODO list, but I'm not sure of that either.