BUG: catmgr.php - gallery with more than 245 categories BUG: catmgr.php - gallery with more than 245 categories
 

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

BUG: catmgr.php - gallery with more than 245 categories

Started by Mystic Diamond, August 27, 2006, 06:44:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Mystic Diamond

There seems to be a bug with catmgr.php. I have tested this page all day long and realized that when there is more than 245 categories, then it crashes the page, with no appropriate error message.

245 categories is all right, but if you add 1 more, then the browser loads an error page. I have tested this with the Categories Manager and the backend database.

Is there any way that this bug can be fixed? Is there a limit to the number of categories that the software can support.

http://www.mysticpoints.net/gallery

Stramm

read this thread... Nibbler posted a version of the catmgr that supports pagination

Joachim Müller




Mystic Diamond

There is a bug in the catmgr.php code, but I fixed it (in case anyone else is using that code)

The page variable doesn't display the appropriate records because of the statement only multiplies the CATS_PER_PAGE if 0 occurs

OLD:
   $start = isset($_GET['page']) ? $_GET['page']-1 : 0 * CATS_PER_PAGE;

NEW:
   $start = isset($_GET['page']) ? $_GET['page']-1 : 0;
             $start *= CATS_PER_PAGE;