Advanced search  

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

Pages: [1]   Go Down

Author Topic: Broken Links,Rating and Slideshow in only one Album [SOLVED]  (Read 4389 times)

0 Members and 1 Guest are viewing this topic.

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

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
« Last Edit: June 22, 2006, 10:09:03 am by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Broken Links and Rating in only one Album
« Reply #1 on: May 03, 2006, 10:44:56 pm »

update!
Logged

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links and Rating in only one Album
« Reply #2 on: May 05, 2006, 09:46:13 am »

that doesn't work, I installed the latest Version of Coppermine, the Problem is still there.
« Last Edit: June 19, 2006, 02:53:47 pm by Beria »
Logged

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links and Rating in only one Album
« Reply #3 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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Broken Links and Rating in only one Album
« Reply #4 on: May 05, 2006, 06:04:31 pm »

are all the pics in the same folder?

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links and Rating in only one Album
« Reply #5 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Broken Links and Rating in only one Album
« Reply #6 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)
Logged

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links and Rating in only one Album
« Reply #7 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.
« Last Edit: June 19, 2006, 02:54:18 pm by Beria »
Logged

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links and Rating in only one Album
« Reply #8 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.

« Last Edit: May 29, 2006, 04:49:28 pm by Beria »
Logged

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links,Rating and Slideshow in only one Album [SOLVED]
« Reply #9 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)
« Last Edit: June 22, 2006, 10:06:49 am by Beria »
Logged

Beria

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Broken Links,Rating and Slideshow in only one Album [SOLVED]
« Reply #10 on: June 22, 2006, 10:07:59 am »

can you mark this post as solved?
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.