Page 1 of 1

Slight issue with the archives

Posted: Mon Feb 21, 2005 8:23 pm
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

Posted: Mon Feb 21, 2005 8:24 pm
by Martin
Oh... I'm using 0.8 snapshot. Can't for the life of me remember which date.

Posted: Mon Feb 21, 2005 8:40 pm
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

Posted: Mon Feb 21, 2005 8:47 pm
by Martin
Hey garvin.
My URL rewriting is already disabled. I just checked it and saved to be sure, but no go...

-M

Posted: Tue Feb 22, 2005 11:25 am
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

Posted: Tue Feb 22, 2005 12:56 pm
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

Posted: Tue Feb 22, 2005 1:28 pm
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

Posted: Tue Feb 22, 2005 5:17 pm
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

Posted: Tue Mar 01, 2005 11:19 pm
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

Posted: Wed Mar 02, 2005 3:21 pm
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

Posted: Tue Mar 08, 2005 11:17 pm
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?

Posted: Wed Mar 09, 2005 11:09 am
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

Posted: Wed Mar 09, 2005 12:45 pm
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

Posted: Wed Mar 09, 2005 12:58 pm
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

Posted: Wed Mar 09, 2005 2:41 pm
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