Problems with Gallery after upgrade to PHP 5.2.0

chrisschreiber

Joined: 2006-11-07
Posts: 4
Posted: Tue, 2006-11-07 14:47

I recently upgraded PHP on my server to 5.2.0 yesterday, and since then I've been having problems with my Gallery installation that were not there before. Basically, some of the pages are randomly being displayed as blank pages... hitting refresh will sometimes fix the problem, other times it takes a few refreshes. Also, a number of the thumbnail images aren't being displayed, instead a red X is being displayed.

You can see the gallery here: [link removed]

I have other PHP applications on the server, like vBulletin, which seem to be working fine since the upgrade.

Any suggestions on how to debug or fix this problem would be appreciated. I don't want to downgrade back to PHP 5.1.x since this version fixes some PHP bugs I've had.

Thanks,
Chris


Gallery version (not just "2"): 2.1.2
PHP version (e.g. 4.3.11): 5.2.0 ISAPI
PHPInfo Link (see FAQ): [link removed]
Webserver (e.g. Apache 1.3.33): IIS 6.0
Database (e.g. MySql 4.0.11): MySQL 5.0.26
Activated toolkits (e.g. NetPbm, GD): GD, ImageMagick, NetPBM
Operating system (e.g. Linux): Windows 2003 Server Enterprise
Browser (e.g. Firefox 1.0): IE 7

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32356
Posted: Tue, 2006-11-07 23:12
Login or register to post comments
chrisschreiber

Joined: 2006-11-07
Posts: 4
Posted: Wed, 2006-11-08 01:18

Thanks for the suggestion. Now these PHP errors are being shown randomlly instead of the blank pages:

Fatal error: Cannot redeclare gallerymain() (previously declared in D:\Inetpub\chrisschreiber.com\gallery\main.php:87) in D:\Inetpub\chrisschreiber.com\gallery\main.php on line 128

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32356
Posted: Wed, 2006-11-08 02:02

main.php doesn't include main.php again. that doesn't make sense.

and there are no 2 functions GalleryMain in main.php. there's just GalleryMain and _GalleryMain.

also, it's probably not a problem with php 5.2.0 (i guesst you're using the final release, not an rc!).
we've tested gallery 2 with php 5.2.0 and it works fine.

Login or register to post comments
chrisschreiber

Joined: 2006-11-07
Posts: 4
Posted: Wed, 2006-11-08 02:37

I know, I looked at the code and was confused by what could be causing the error too. This is all standard unmodified Gallery code (except for putting the code into the top of main.php to display errors), and the only change was upgrading PHP from 5.1.6 to 5.2.0 (yes, the final version) which caused this problem.

Do you have any other suggestions on what I might be able to try to fix this?

Login or register to post comments
chrisschreiber

Joined: 2006-11-07
Posts: 4
Posted: Wed, 2006-11-08 02:46

I switched from PHP ISAPI to CGI, and it looks like that eliminated the problems. So maybe a new bug in the 5.2.0 ISAPI module somewhere...

Login or register to post comments