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

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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