Advanced search  


cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.

Pages: [1]   Go Down

Author Topic: Problem with cpm_viewRandomMostViewedMediaFrom in large galleries  (Read 2883 times)

0 Members and 1 Guest are viewing this topic.


  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • []
    • Fist Full Of Code

There is a problem with memory handling in cpm_viewRandomMostViewedMediaFrom - that crops up in very large galleries.

(like 20,000 pictures).

It will basically result in an out of memory condition on your server.

I am working on a fix, but for now if you edit the cpmfetch_config.php file (in the dev releases) you can change the line that reads:

// What percentage will be evaluated as being top rated
// $config_overrides['cfTopPercentForTopRated'] = '10';

to something less... like
$config_overrides['cfTopPercentForTopRated'] = '2';

The same bug probably will occur with the random most viewed, the setting for that is in:

// What percentage will be evaluated as being most viewed
//  $config_overrides['cfTopPercentForMostViewed'] = '25';


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up

Page created in 0.017 seconds with 19 queries.