Issue with catmgr.php (paged) Issue with catmgr.php (paged)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Issue with catmgr.php (paged)

Started by Scias, July 15, 2007, 03:59:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Scias

sorry if this in the wrong place, but best fit that i saw ;)

ok, i downloaded the paged cat-manager, to fix the time out problem u hit after 125 cat's or so, that all works great, but i noticed a small bug where lets say u go to page 2, it only shows 1 new category lol, i ran threw the file, i couldnt make heads or tails of what could be affecting this, and i didnt wish to "toy" with it, and in turn break it, so im curious if anyone knows how to fix this?

ty in advance ;)

Nibbler

That is just a quick hack, I don't really want to end up supporting it :)

Try the catmgr.php from the next version and see if that helps.

http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.5.x/catmgr.php?revision=3471

PS. Why do you need so many categories?

Scias

lol, i need so many, as thats only the tip of the iceberg. it's part of a collection of anime, and specific games im collecting for a project, unfortunatly, theirs hundreds of such, so takes many categorys :P

and ill give the next 1 a whirl, ty :)

Scias

haha, the new version doesnt work at all seemingly...

Nibbler

There is an error here in the modded catmgr.php


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


Change that to


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

krp

Nibbler, catmgr.php from 1.5 work great for me. Thanks!!!

The speed is 10x better from my 1.44 file, and I don't need paging... I have 550+ categories!

www.dancepho.com/webga

krp

Sorry for doble post... Now i see that browsing is very fast....I have more than 100.000 images.
Before I have many problems with hosting... with scripts that works more than 30 sec.. now looks very good :)

Joachim Müller

Thank you for your feedback.

Quote from: krp on July 25, 2007, 09:00:43 PM
The speed is 10x better from my 1.44 file, and I don't need paging... I have 550+ categories!
You're running cpg1.4.4, while the most recent stable release currently is cpg1.4.12, which means that you're lagging 8 versions behind. It is absolutely mandatory (in terms of security) that you upgrade asap.

krp