Advanced search  

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

Pages: [1]   Go Down

Author Topic: Issue with catmgr.php (paged)  (Read 4620 times)

0 Members and 1 Guest are viewing this topic.

Scias

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 86
Issue with catmgr.php (paged)
« 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 ;)
« Last Edit: July 26, 2007, 12:57:00 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Issue with catmgr.php (paged)
« Reply #1 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

PS. Why do you need so many categories?
Logged

Scias

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 86
Re: Issue with catmgr.php (paged)
« Reply #2 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 :)
Logged

Scias

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 86
Re: Issue with catmgr.php (paged)
« Reply #3 on: July 15, 2007, 04:39:29 am »

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

Nibbler

  • Guest
Re: Issue with catmgr.php (paged)
« Reply #4 on: July 15, 2007, 04:52:16 am »

There is an error here in the modded catmgr.php

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

Change that to

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

krp

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Issue with catmgr.php (paged)
« Reply #5 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
Logged

krp

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Issue with catmgr.php (paged)
« Reply #6 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 :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Issue with catmgr.php (paged)
« Reply #7 on: July 26, 2007, 08:50:20 am »

Thank you for your feedback.

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.
Logged

krp

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Issue with catmgr.php (paged)
« Reply #8 on: July 26, 2007, 12:17:46 pm »

Thank you! I will upgrade soon!
Logged
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 20 queries.