coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Scias on July 15, 2007, 03:59:04 AM

Title: Issue with catmgr.php (paged)
Post by: Scias on July 15, 2007, 03:59:04 AM
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 ;)
Title: Re: Issue with catmgr.php (paged)
Post by: Nibbler on July 15, 2007, 04:27:10 AM
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 (http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.5.x/catmgr.php?revision=3471)

PS. Why do you need so many categories?
Title: Re: Issue with catmgr.php (paged)
Post by: Scias on July 15, 2007, 04:32:12 AM
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 :)
Title: Re: Issue with catmgr.php (paged)
Post by: Scias on July 15, 2007, 04:39:29 AM
haha, the new version doesnt work at all seemingly...
Title: Re: Issue with catmgr.php (paged)
Post by: Nibbler on July 15, 2007, 04:52:16 AM
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;
Title: Re: Issue with catmgr.php (paged)
Post by: krp on July 25, 2007, 09:00:43 PM
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
Title: Re: Issue with catmgr.php (paged)
Post by: krp on July 25, 2007, 09:06:15 PM
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 :)
Title: Re: Issue with catmgr.php (paged)
Post by: Joachim Müller on July 26, 2007, 08:50:20 AM
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.
Title: Re: Issue with catmgr.php (paged)
Post by: krp on July 26, 2007, 12:17:46 PM
Thank you! I will upgrade soon!