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
-
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
-
update!
-
that doesn't work, I installed the latest Version of Coppermine, the Problem is still there.
-
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.
-
are all the pics in the same folder?
-
The Pictures were uploaded by users. They are stored in the usual coppermine way.
/albums/userpics/10001/
/albums/userpics/10002/
and so on
there are not more than 9 Pictures in each subfolder.
-
you're still running cpg1.4.2. Do as I suggested and upgrade to the most recent stable (currently cpg1.4.5)
-
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.
-
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.
-
the Problem is the function
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
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
-
can you mark this post as solved?