Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [fixed] Paging Troubles.... Help!  (Read 3395 times)

0 Members and 1 Guest are viewing this topic.

JSpecMugen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • http://www.2nr.net/
[fixed] Paging Troubles.... Help!
« on: April 14, 2004, 07:18:34 pm »

I seem to be having a weird issue with my album lists not paging properly. It seems to occur only in one particular category.

Please keep in mind my website IS NOT WORK SAFE.

This is the base category I am having problems with: Here
When I page through (with the variable page=x) I stay on the first page for some reason.

Anyone have any ideas?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[fixed] Paging Troubles.... Help!
« Reply #1 on: April 14, 2004, 08:52:46 pm »

Strange.  I can confirm that when in this category, which contains 39 albums plus 2 sub-categories with more albums, the link to ?cat=6&page=2 (or 3 or 4) all result in page 1 being displayed, but with the url showing the page you requested.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JSpecMugen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • http://www.2nr.net/
[fixed] Paging Troubles.... Help!
« Reply #2 on: April 14, 2004, 09:21:39 pm »

Quote
Strange. I can confirm that when in this category, which contains 39 albums plus 2 sub-categories with more albums, the link to ?cat=6&page=2 (or 3 or 4) all result in page 1 being displayed, but with the url showing the page you requested.


Defiantely.
There haven't been any modifications to backend code nor the database. I can also recall it working correctly a day or two ago. The only things i've done since then was to add an additional 10 albums aswell as sub-categorize the "Girls" section.

It's really odd.
Logged

JSpecMugen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • http://www.2nr.net/
[fixed] Paging Troubles.... Help!
« Reply #3 on: April 14, 2004, 11:04:57 pm »

I also saw in the Sticky section right above this a user name danielg was having the same problems with their paging.

I saw that there was a snippet of code that Tarique suggested to change:

Code: [Select]
function list_cat_albums($cat = 0)
{
    global $CONFIG, $USER, $PAGE, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA;
    global $lang_list_albums, $lang_errors;  


to

Code: [Select]
function list_cat_albums($cat = 0)
{
    global $CONFIG, $USER, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA;
    global $lang_list_albums, $lang_errors;
    $PAGE = 1;  


However, my code already looks like this:

Code: [Select]
function list_cat_albums($cat = 0)
{
    global $CONFIG, $USER, $PAGE, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA;
    global $lang_list_albums, $lang_errors;


It has the $PAGE defined but it doesn't $PAGE = 1; , and if I add that PAGE = 1 var... It doesn't make any difference.

I CAN however say that the problem exists ONLY when a paging in a category that has sub-categories.

Anyone have any further ideas? I'm gonna go check out the bug tracker and see what people say there.

Thanks!
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[fixed] Paging Troubles.... Help!
« Reply #4 on: April 14, 2004, 11:51:38 pm »

Did you actually change the code as tarique said, not just adding the last line, but removing '$PAGE,' from line 2.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JSpecMugen

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • http://www.2nr.net/
[fixed] Paging Troubles.... Help!
« Reply #5 on: April 15, 2004, 12:16:33 am »

Quote from: "casper"
Did you actually change the code as tarique said, not just adding the last line, but removing '$PAGE,' from line 2.


My bad. I didn't read carefully.

Thanks for the support casper.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[fixed] Paging Troubles.... Help!
« Reply #6 on: April 15, 2004, 12:22:16 am »

Glad to of helped.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.