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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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 1 Guest 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;