Slight issue with the archives

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Slight issue with the archives

Post by Martin »

I just moved my blog from hastalasiesta.org/blog to hastalasiesta.org. Just a slight case of moving the files around on the server and then validating the paths in serendipity. Now however all my archived entries fail to show up.
They are still available for editing through the admin panel, but clicking on a month, calendar date or otherwise requesting a post from the archives isn't working.

The "archives" folder on my server is also empty. I didn't check if that was the case before I moved the files, but I'd imagine not.

Anyway of fixing this other than posting it all over again?

-m
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

Oh... I'm using 0.8 snapshot. Can't for the life of me remember which date.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Seems to be a problem with "URL Rewriting". Set it to none, then the URLs should work again.

The 'archives' folder is always empty, it gets generated on the fly...

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/
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

Hey garvin.
My URL rewriting is already disabled. I just checked it and saved to be sure, but no go...

-M
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

This is really strange, I don't have the problems on my installation...

Can you check and see if the same happens with the default template? If it works there, please tell me which modifications you've made to your template and if you're using smarty templating or layout.php.

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/
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

I'm afraid it's the same story with the default template. I've also noticed that although the url in the adress bar seems to be correct, the title of the window and the calendar shows up as "Entries from December 1999".

For reference I am using smarty templates, and I've only modded them in small fashions such as switching the places of the sidebars and adding a footer on the mainpage. I haven't gone near anything I believe to have to do with archives.

Like I mentiioned, this problem appeared when I was moving the site, so to begin with I thought I might have a path problem but I really can't think of where that should be...

-M
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Did you check your '.htaccess' file for wrong paths? And did you check your serendipity_config_local.inc.php and the path-related settings of 'serendipity_config' DB-table if they are all correct?

My bet is with .htaccess...

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/
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

if by .htaccess you mean the files called htaccess.normal.tpl and so on, I've looked at them and I can't find anything obvious.
Should I have a file named ".htaccess"? Because I don't. And I cant find it in the latest s9y-download either.

I can't reach my serendipity_config_local_inc file at the moment, but I'll check it when I've solved the permissions problem.

-m
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

Sooo...

I'm still not having any luck.
I'd reinstall, but I've made some changes to several of the files, and I don't want to have to do them all again.

Any suggestions?

-m
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I think the problem was one I fixed earlier today. If you accessed your url with 'index.php' after the s9y directory it would give you a wrong link with a '/index/' path there which didn't belong there.

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/
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

Ok...
After a complete reinstall (which cost me my CSS *sniff*) I still have this problem. I am now using the 0.8 beta2.

My url shows up like this:

http://www.hastalasiesta.org/index.php? ... 05/02.html

when I attempt to access the archive, however the page shows up with "Entries from december 1999" and naturally no entries to print.

I've looked around in the htaccess.rewrite.tpl file and I found these lines that looked like they had something to do with the archives.

Code: Select all

RewriteRule ^{PAT_ARCHIVES} {indexFile}?url=/{PATH_ARCHIVES}/$1.html [L,QSA]
RewriteRule ^{PAT_ARCHIVES_SHORT} {indexFile}?url=/{PATH_ARCHIVES}/$1-short.html [L,NC,QSA]
But I'm not enough of a coder to say whether this is right or wrong.

As for my serendipity_config_local.inc.php I'm not even allowed to open it, so I have no idea whats in it.

Suggestions?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Martin!

Which template are you using? Could you please try if you face the same issue with the default template?

If it works with default - are you using a manual 'layout.php' file? If the answer is also yes, please compare your layout.php to include/genpage.inc.php and/or templates/newspaper/layout.php (of latest CVS) - there was a problem with the 'range' parameter which needed fixing.

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/
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

Hi.
I'm using a custom template that I've based on MT3-squash, so it uses the template system. I've also tried the default template, but I still get the same.

M
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

So your folder contains no layout.php? And you really have upgraded all files to 0.8-beta2? Especially the files index.php and include/genpage.inc.php are pretty important...

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/
Martin
Regular
Posts: 90
Joined: Mon Sep 27, 2004 1:30 am
Location: Oslo
Contact:

Post by Martin »

There is no layout.php in the folder, and when I upgraded I only skipped the english language file and index.tpl in the default template folder to avoid having to redo the changes I had made to these files.

-m
Post Reply