Category Page 2 is Blank

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Jotterbox
Posts: 3
Joined: Tue Apr 14, 2009 2:26 pm

Category Page 2 is Blank

Post by Jotterbox »

Hi there,

I noticed with all my serendipity blogs that when I browse pages via categories, page 2 + ends up being blank. It says "Sorry. No entries to print". The posts doesn't show up, whereas the pages viewed via archives are okay.

Please take a look at a couple of my blogs using the categories, so you know what I mean.

jotterbox.com/blogamatazz.com

How can I get this to work?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Category Page 2 is Blank

Post by garvinhicking »

Hi!

This is because a Link like http://blogamatazz.com/categories/Family/P2.html can't properly resolve to the used category - if you could change your permalink setup to include %id% inside your categories URL, the problem would go away, then the link would look like http://blogamatazz.com/categories/1-Family/P2.html and then not require a database lookup.

In my installation, using a link like the above one does work, I think it has been a glitch in earlier s9y versions - if you upgrade to 1.4.1 you could check if the problem then goes away.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jotterbox
Posts: 3
Joined: Tue Apr 14, 2009 2:26 pm

Re: Category Page 2 is Blank

Post by Jotterbox »

I tried doing this with one of my blogs hoping it would work, I even upgraded my serendipity just as you suggested and it still doesn't work.

Is there some kind of code I can change in the category script?

Any other possible solution for this? I really want the categories to work, so I don't have to rely on going through the archives when I'm looking for something.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Category Page 2 is Blank

Post by garvinhicking »

Hi!

This is strange, this should work. Did you maybe modify any of the internal s9y files, or did some changes to the .htaccess file?

I can only offer to have a precise look at the installation, if you'd like that...in that case I would need temporary FTP access to debug the URL lookup on your page. Please contact me via PM, if you want to try this.

Regards,
Garvin
Jotterbox wrote:I tried doing this with one of my blogs hoping it would work, I even upgraded my serendipity just as you suggested and it still doesn't work.

Is there some kind of code I can change in the category script?

Any other possible solution for this? I really want the categories to work, so I don't have to rely on going through the archives when I'm looking for something.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Category Page 2 is Blank

Post by garvinhicking »

Hi!

Now that I was able to check your page, I could find the issue.

You changed the permalinks of entries to not use a prefix. This is sadly not supported by serendipity. You must use a prefix, without a prefix errors like these will happen.

A bit of background: Without a prefix, serendipity will think that a article page instead of a category page is requested, because the regular expression matches also the one of an article: /categories/5-blah/P2.html matches "can contain any words and ends with .html" which is your rule of entries.

If you change the permalink for your entries to have a fixed prefix like /article /blog or /content or whatever, this mixup will no longer occur.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jotterbox
Posts: 3
Joined: Tue Apr 14, 2009 2:26 pm

Re: Category Page 2 is Blank

Post by Jotterbox »

Thank you! It's working now :)
Post Reply