I have just installed Gallery. Running on Windows XP Home Edition using the Foxserv 3.0 setup for Apache2.39, MySQL, Perl and PHP4.2. Gallery configured and starts up OK. I can login to Admin. From the Admin page clicling on Add Album gives:
Fatal error: Call to a member function on a non-object in C:FoxServwwwGalleryclassesUser.php on line 155
I downloaded NetPBM 10.6 from GNUWIN32.
My server is on a localhost only at this point. Running the NetPBM diagnoistics shows not found on all NETPBM errors but they are in the defined path. They are present with .exe file extnestions.
Any suggetions are welcome
Posts: 49
Your problem is NOT with the NetPBM libraries. You are getting a PHP error from the Gallery Classes. Other than that, I can't be much help, I haven't gotten into Object Oriented programming in PHP yet.
You're not likely to find an answer. Not only are you using WinXP, but you are using Apache 2. Neither of those is supported. I'd suggest that you try an install of FoxServ 2.1 and see how it goes. I use it just fine (with PostNuke and Gallery) on a Win2k machine. FoxServ 3.0 gave me fits with several of the PostNuke modules, and I never got around to trying Gallery on in.
Isn't PHP still experimental under Apache2?
Posts: 7994
Carpetbagger is right, PHP is still experimental under Apache2 so we don't support it. However, I'm pretty sure that Gallery will work fine on Apache 1.3.x with PHP on WinXP .. give it a try.
Posts: 6
I have removed Foxserve 3.0 and installed Foxserv 2.1
I extracted Gallery to C:foxservwwwgallery. I ran configure.bat then from browser
http://localhost/gallery/
Clicked on Configuration Wizard and .....
Bad Request
Your browser sent a request that this server could not understand.
--------------------------------------------------------------------------------
Apache/1.3.22 Server at localhost Port 80
Nothing in apache error log.
Access log
127.0.0.1 - - [21/Aug/2002:14:29:10 +0900] "GET /gallery HTTP/1.1" 301 307
127.0.0.1 - - [21/Aug/2002:14:29:10 +0900] "GET /gallery/ HTTP/1.1" 200 1341
127.0.0.1 - - [21/Aug/2002:14:29:10 +0900] "GET /gallery/css/standalone_style.css.default HTTP/1.1" 304 -
127.0.0.1 - - [21/Aug/2002:14:29:10 +0900] "GET /gallery/css/embedded_style.css.default HTTP/1.1" 304 -
127.0.0.1 - - [21/Aug/2002:14:29:17 +0900] "GET /gallery/setup/index.php HTTP/1.1" 400 293
http://localhost/gallery/setup/diagnostics.php
gives correct page and PHPinfo works correctly.
Any ideas?
Posts: 7994
See if <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.faq.c.php" TARGET="_blank">FAQ C</A><!-- BBCode End --> helps.
Posts: 6
Removing .htaccess let me configure gallery and login to Admin.
Trying to create a new album I got the same fatal error as before.
Fatal error: Call to a member function on a non-object in c:foxservwwwgalleryclassesUser.php on line 155
Again nothing in Apache error log even with debug error level.
Posts: 7994
Post a directory listing of your albums directory. It sounds like the album is not getting created properly. We need to see the albums dir and inside "album01"
Posts: 6
C:FoxServwwwalbums.users
contains following files:
.htacess
1029988943;175520938
1029988943;1755202938.lock
userbd.bak
userdb.dat
userdb.dat.lock
other than these Albums is empty there is no Album01
Posts: 7994
And your c:FoxServwwwalbums directory contains only the .users directory? That's weird -- it means that the directory isn't getting created. So just to be clear, you did the following:
* Installed a clean gallery using Apache 1.3.x
* Ran the config wizard to completion
* Secured your gallery (with secure.bat or by hand)
* Logged in
* Clicked the [new album] link
Then exactly what happened at that point? The more detail you can provide the better, since I have to try to mentally recreate the operations that Gallery is doing and try to figure out what went wrong. Also, what is the URL to your Gallery?
Posts: 6
I did:
* Installed a clean gallery using Apache 1.3.x
* Ran the config wizard to completion
* Secured your gallery with secure.bat
* Logged in as Admin
* Clicked the [new album] link
Fatal error: Call to a member function on a non-object in c:foxservwwwgalleryclassesUser.php on line 155
URL is:
thrush.homeip.net/gallery
Posts: 7994
Sounds like Gallery is unable to create your album correctly. I tried to get to your Gallery but got a "HTTP 403 (Forbidden)" response. Looks like you've got basic authentication turned on for your site and I don't know your password. Can you put it in config mode and private-message me with a username/password I can use to check it out? Thanks.
Posts: 6
After a total removal of Foxserv and gallery and a clean re-install Gallery now works. There are a few quirky problems:
Unreadable charaters on client displays. They can move or go away when you refresh the display.
When downloading pictures all works well for the first 50-70, then it stops working until Apache the browser is exited and Apache re-started. This is using the directory reference download.
When renaming a nested Album directory I tried the name of the root album dirtectory and got the error that that name was already in use. This error repeats no mater what is entered, even after exiting and retrying the rename.
Thanks
Posts: 7994
The above two problems sound like they may be issues with Apache/PHP. If you can reproduce the first one, I'd be interested in seeing it. The second one is probably Apache/PHP actually crashing! (I've seen this happen before).
That's pretty interesting. When you say "the name of the root album", what exactly
do you mean? You tried to call it "albums"? That should work ..
Try turning on debug mode. It should print out some extra output that might shed some light on the problem.