Problem with cpm_viewRandomMostViewedMediaFrom in large galleries Problem with cpm_viewRandomMostViewedMediaFrom in large galleries
 

News:

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.
[more]

Main Menu

Problem with cpm_viewRandomMostViewedMediaFrom in large galleries

Started by vuud, February 19, 2007, 07:17:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud


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';

Vuud

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