PHP upgrade killed gallery?

wanye

Joined: 2002-09-11
Posts: 6
Posted: Wed, 2002-09-11 22:50

hiya. i upgraded the version of PHP on my server earlier today, to attempt to fix a few problems i was having with a script i was working on.

anyway, i seem to have killed gallery in the process. the setup/config all seems fine, but when i secure it again, and try to access it, it just times out on me.

i also tried adgrading my version of Gallery (as well as doing a clean install of the latest version in a seperate place), but its just the same.

the version of PHP i upgraded to is 4.1.2. are there any known problems with this version? ive tried RTFMing and searching the forums, but i dont seem to have come up with anything helpful.

i am running e-smith V5.1 (a redhat variant) which uses apache.

TIA,

Wanye.

 
wanye

Joined: 2002-09-11
Posts: 6
Posted: Thu, 2002-09-12 00:44

ok. i turned display errors on...

----------
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 45 bytes) in /home/e-smith/files/primary/html/gallery/classes/Album.php on line 370

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 134 bytes) in Unknown on line 0
-----------
which is (in bold is line 370)

function loadFromFile($filename) {

$data = getFile($filename);
$tmp = unserialize($data);
if (strcasecmp(get_class($tmp), "album")) {
/* Dunno what we unserialized .. but it wasn't an album! */
return 0;
}

$this = $tmp;
return 1;
}

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 05:57

This is FAQ C.16 (which I just added).