forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Beria on May 03, 2006, 04:50:19 pm

Title: Broken Links,Rating and Slideshow in only one Album [SOLVED]
Post by: Beria on May 03, 2006, 04:50:19 pm
Hi,
my Problem is, that in only one Album of my gallery the direct Links to Images don't work.
e.g. http://www.fotohits.de/gallery/displayimage.php?pos=-6282 (http://www.fotohits.de/gallery/displayimage.php?pos=-6282)
In any other of the albums these Links work:
http://www.fotohits.de/gallery/displayimage.php?pos=-3302 (http://www.fotohits.de/gallery/displayimage.php?pos=-3302)

In the first Album also the Rating feature isn't working correct, because after the rating there is a redirect to a direct Link.

I will appreciate any help

WG
Title: Re: Broken Links and Rating in only one Album
Post by: Joachim Müller on May 03, 2006, 10:44:56 pm
update!
Title: Re: Broken Links and Rating in only one Album
Post by: Beria on May 05, 2006, 09:46:13 am
that doesn't work, I installed the latest Version of Coppermine, the Problem is still there.
Title: Re: Broken Links and Rating in only one Album
Post by: Beria on May 05, 2006, 03:07:59 pm
I made a Copy of the Installation and the Database and reduced the number of Pictures in the Album.
The Links didn't work until the number of the pictures was less than 1327.
To reproduce the problem I made another copy of my gallery and tested with a album that worked. I copied pictures into the album and the links worked until the number of pictures went above 1327.
Title: Re: Broken Links and Rating in only one Album
Post by: Stramm on May 05, 2006, 06:04:31 pm
are all the pics in the same folder?
Title: Re: Broken Links and Rating in only one Album
Post by: Beria on May 08, 2006, 02:18:47 pm
The Pictures were uploaded by users. They are stored in the usual coppermine way.
Code: [Select]
/albums/userpics/10001/
/albums/userpics/10002/
and so on

there are not more than 9 Pictures in each subfolder.
Title: Re: Broken Links and Rating in only one Album
Post by: Joachim Müller on May 08, 2006, 06:09:37 pm
you're still running cpg1.4.2. Do as I suggested and upgrade to the most recent stable (currently cpg1.4.5)
Title: Re: Broken Links and Rating in only one Album
Post by: Beria on May 12, 2006, 11:40:07 am
as I mentioned before, I installed Version 1.4.5 (stable) in another directory and there is no difference. The error exists in both versions of the gallery.
Title: Re: Broken Links and Rating in only one Album
Post by: Beria on May 29, 2006, 04:20:46 pm
I updated the whole Gallery to version 1.4.6 and the Problem is still there. It seems that the Coppermine Gallery can't handle more than 1300 Pictures in one Album.

Also the Slideshow doesn't work in Albums with more than 1300 Pictures (http://www.fotohits.de/gallery/thumbnails.php?album=3). If there are less than 1300 Pictures in the album everything works (http://www.fotohits.de/gallery/thumbnails.php?album=4).

Maybe we shoud migrate to Gallery2 if Coppermine can't handle such a amount of Pictures in one Gallery.

Title: Re: Broken Links,Rating and Slideshow in only one Album [SOLVED]
Post by: Beria on June 19, 2006, 02:52:20 pm
the Problem is the function
Code: [Select]
function cpg_db_query($query, $link_id = 0)

and

function cpg_db_fetch_rowset($result)

to show one Picture the Coppermine Gallery reads not just the data for one image, it reads the data for all images of that album from the database and stores it into a array. If there are many images in one album this array becomes really huge and the maximum amount of memory a script may consume (default 8MB (defined in php.ini)) is not enough for the script (Buffer Overflow !!). The script crashed and gave me no error message. Even in the apache and php logs there were no error mesages.

To avoid this problem set the memory limit to 16MB or better 32MB in the php.ini

You can set the Memory limit in the line

Code: [Select]
memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)
Title: Re: Broken Links,Rating and Slideshow in only one Album [SOLVED]
Post by: Beria on June 22, 2006, 10:07:59 am
can you mark this post as solved?