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,
|
|
| Login or register to post comments |

Posts: 32151
please see:
FAQ: I get only a blank screen when trying to view my Gallery, what's wrong?
Posts: 4
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
Posts: 32151
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.
Posts: 4
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?
Posts: 4
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...