Broken Links,Rating and Slideshow in only one Album [SOLVED] Broken Links,Rating and Slideshow in only one Album [SOLVED]
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Broken Links,Rating and Slideshow in only one Album [SOLVED]

Started by Beria, May 03, 2006, 04:50:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Beria

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
In any other of the albums these Links work:
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

Joachim Müller


Beria

#2
that doesn't work, I installed the latest Version of Coppermine, the Problem is still there.

Beria

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.

Stramm


Beria

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.

Joachim Müller

you're still running cpg1.4.2. Do as I suggested and upgrade to the most recent stable (currently cpg1.4.5)

Beria

#7
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.

Beria

#8
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.


Beria

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)


Beria