Unable to get random image to display

alanuk

Joined: 2004-03-10
Posts: 24
Posted: Thu, 2004-12-23 08:29

I'm trying to get a randomly-selected image to display from my Gallery installation within my Mambo site at http://www.alanrolfe.com.

I tried both the excellent add-on from http://www.gallery-addons.com and from http://www.glasgowsports.com and I get similar failures displayed on my site.

The first gives me:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14538 bytes) in /home/xxxx/public_html/gallery/util.php on line 373

whilst the second gives me:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 65537 bytes) in /home/xxxx/public_html/gallery/util.php on line 373

Using the one from http://www.gallery-addons.com and typing http://www.alanrolfe.com/contents/i...lock-random.php

I get this:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 65537 bytes) in /home/xxxx/public_html/gallery/util.php on line 373

(xxxx= site access name)

Any thoughts, please?

Thanks in anticipation.

Alan

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-12-23 08:35
 
alanuk

Joined: 2004-03-10
Posts: 24
Posted: Thu, 2004-12-23 08:48

Oops! Sorry, yes just found that looking in one of the other forums after my posting. My apologies.

 
seanieb

Joined: 2005-01-07
Posts: 8
Posted: Fri, 2005-01-07 15:07

I’m Puzzled why every time people who raise the question of memory allocation keep getting pointed toward “FAQ Gallery:c.16

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2005-01-07 15:29

Simple - The albums store more data than they did in previous versions.

 
terpie

Joined: 2003-03-17
Posts: 5
Posted: Sat, 2005-02-12 23:20

Than this change have be done between
version Gallery v1.4.4-pl4 and Gallery v1.4.4-pl6 ?

I had the same problem and after setting the memory_limit from
8 MB to 32 MB my random-photo block in PHPNuke worked again.

I cannot say for sure the problem is Gallery because I have
installed a new server so I have changed more than one thing:

current server --------> new server

Pentium 133MHz --------> Pentium 3 450 MHz
Suse 7 --------> Suse 9.1
Apache/1.3.31 --------> Apache/2.0.50
PHP 4.3.7 --------> PHP 4.3.8
PHPNuke 1.6.2 --------> PHPNuke 7.5
Gallery v1.4.4-pl4 --------> Gallery v1.4.4-pl6

Martin.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2005-02-13 02:49

No changes were made from -pl4 except security.

The fact that you changed servers, OS versions, Apache versions, PHP versions, AND PHPNuke versions probably had a lot to do with it. Not one single thing is the same.