Page 1 of 1
Category Page 2 is Blank
Posted: Tue May 05, 2009 12:46 pm
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?
Re: Category Page 2 is Blank
Posted: Tue May 05, 2009 1:32 pm
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
Re: Category Page 2 is Blank
Posted: Fri May 15, 2009 7:40 am
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.
Re: Category Page 2 is Blank
Posted: Fri May 15, 2009 8:27 am
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.
Re: Category Page 2 is Blank
Posted: Wed May 20, 2009 12:06 pm
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
Re: Category Page 2 is Blank
Posted: Thu May 21, 2009 3:05 am
by Jotterbox
Thank you! It's working now
