Problems reading posts/articles.

Found a bug? Tell us!!
Post Reply
kjetil.s
Posts: 3
Joined: Wed Apr 09, 2014 10:48 am

Problems reading posts/articles.

Post by kjetil.s »

Hi.

Here is a strange error I can't seem to figure out. :(

When I have written a new post and saved it, the post/article shows up on the main index page.
But when I click on the entries heading to read the post, there are no post/article to display.

Check the article "Vestavind" as an example. The article on the top of the page.

On the main/index page:
http://www.retroarkivet.no/

On the post/article page:
http://www.retroarkivet.no/index.php?/a ... avind.html

This does not apply to all posts/articles.
Just 3 of all the articles on the page.

"Vestavind", "Marerittet" and "Bussen".

However I have tried to put out some posts/articles today, and this error applies to all posts/articles I have tried to put out today.

BR
Kjetil
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems reading posts/articles.

Post by Timbalu »

Hi Kjetil

If that wouldn't be so new, I would suggest a coding error with the entries.tpl or something ...
https://github.com/s9y/Serendipity/blob ... ntries.tpl

But first I would try the following. Switch to the 2k11 theme/template temporary and force some hard reloads in your browser and then see if that problem still exists. That would give us a hint where to look for.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
kjetil.s
Posts: 3
Joined: Wed Apr 09, 2014 10:48 am

Re: Problems reading posts/articles.

Post by kjetil.s »

Hi Timbalu.

Template have now been changed to 2k11.
Still the same problem.

Thanks,

Kjetil
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems reading posts/articles.

Post by Timbalu »

That is very strange and for me it looks like there is some sort of regex not allowing simple
/archives/oneword.html urls but does /archives/two-or-more-words.html urls.

Please post you settings in backend - configuration - Permalinks

Permalink Entry URL structure should be archives/%id%-%title%.html for example.

Maybe a htaccess dump could help too.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
kjetil.s
Posts: 3
Joined: Wed Apr 09, 2014 10:48 am

Re: Problems reading posts/articles.

Post by kjetil.s »

I removed the %id% tag from the permalinks as I wanted a more simple url for each posts.

Putting back the %id% tag everything works fine.

So I recon that it was not enough just the %title% tag. :(

Thank you very much for your help! :D
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems reading posts/articles.

Post by Timbalu »

Yes, it says that it is suggested to use the defaults; if not, you should try to use the %id% value where possible to prevent Serendipity from querying the database to lookup the target URL.

My personal experience with all people touching this 'id' field, was to move back to not touch the defaults, even if it can be done.

The discovered experience you had with oneword not working, but multiple words working with title only, is still strange though, and there still might be a bug somewhere not running a database query for oneword.html strings.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply