Page 1 of 4
"Next page" link not working
Posted: Sun Jul 08, 2007 11:58 pm
by shanek
For the past few weeks (maybe more), my blog hasn't worked whenever someone hits the "next page" link at the bottom. Clicking the link results in a "Bad Request: Your browser sent a request that this server could not understand" page. My blog is here:
http://www.shanekillian.org
Have I configured something in Serendipity wrong? Or is it the server configuration? It was working six months ago; I know that. I upgraded to version 1.1.3, but it's still doing the same thing.
Posted: Mon Jul 09, 2007 12:08 am
by stm999999999
perhaps your settings for the urls / pathes in the config are wrong?
Posted: Mon Jul 09, 2007 12:17 am
by blog.brockha.us
Hmm.. There seems to be something wrong with your template.. The "next page" link on your page is
http://www.shanekillian.org/blog/P2.html
(what leads to a not existing static page)
but it should be
http://www.shanekillian.org/blog/index. ... es/P2.html
Later: Hmm.. But the "correct" link doesn't work, too, on your site.. Strange.
Posted: Mon Jul 09, 2007 1:02 am
by shanek
Hmmm...I've double-checked all the pathnames. I haven't messed with the actual code; I just wrote a stylesheet for it.
It gives me the "correct" path when I go to shanekillian.org/blog but not shanekillian.org. Which is weird, because the index.php at the root just grabs the index.php in the /blog directory and displays it.
It's also weird that the static name is giving me a 400 error and not a 404.
Curiouser and curiouser.
Posted: Mon Jul 09, 2007 10:31 am
by garvinhicking
Hi!
You cannot use Serendipity on two different path setups. You either need to use/configure shanekillian.org/blog OR shanekillian.org/ - you cannot use both.
Best regards,
Garvin
Posted: Mon Jul 09, 2007 6:43 pm
by shanek
garvinhicking wrote:Hi!
You cannot use Serendipity on two different path setups. You either need to use/configure shanekillian.org/blog OR shanekillian.org/ - you cannot use both.
Best regards,
Garvin
I'm
not using both. The index.php at the root is just a pointer to the one in the /blog/ directory.
And it worked absolutely 100% fine until a few weeks ago (or maybe a bit more).
Posted: Tue Jul 10, 2007 10:27 am
by garvinhicking
Hi!
Hm, maybe I misunderstood then. What did you change since it doesn't work anymore?
How does your index.php look like that is just a "pointer"?
Regards,
Garvin
Posted: Tue Jul 10, 2007 11:21 am
by shanek
garvinhicking wrote:Hm, maybe I misunderstood then. What did you change since it doesn't work anymore?
The only change that occurred was that the account went from being on a GoDaddy free hosting site to paid web hosting. And I'm not sure if that change coincided with the problem or not.
How does your index.php look like that is just a "pointer"?
The index.php at the root pulls out the index.php in /blog/ and posts the results.
Posted: Tue Jul 10, 2007 11:39 am
by garvinhicking
HI!
After moving, did you check your .htaccess file and the s9y path configuration? It might need updating!
The index.php at the root pulls out the index.php in /blog/ and posts the results.
How exactly?
Regards,
Garvin
Posted: Tue Jul 10, 2007 3:21 pm
by shanek
garvinhicking wrote:After moving, did you check your .htaccess file and the s9y path configuration? It might need updating!
Yes. They look okay.
The index.php at the root pulls out the index.php in /blog/ and posts the results.
How exactly?
I do a chdir to /blog/ followed by an ob_get_contents and then display the results.
Posted: Tue Jul 10, 2007 3:53 pm
by garvinhicking
Hi!
Something must have changed when your server moved. Maybe the new server doesn't support your URL rewriting you had previously used?
Yes. They look okay.
How do they look exactly?
I do a chdir to /blog/ followed by an ob_get_contents and then display the results.
Still: How exactly?
I can't be of any help without specific things. Obviously there's something wrong in your configuration, your scripts or your server setup, because it worked previously (and should work generally).
Best regards,
Garvin
Posted: Tue Jul 10, 2007 4:15 pm
by shanek
garvinhicking wrote:Something must have changed when your server moved. Maybe the new server doesn't support your URL rewriting you had previously used?
Maybe, but I would think GoDaddy's servers would be set up consistently. I'll check it out.
I can't be of any help without specific things.
The only way I can be more specific is to give you the code for the page:
Code: Select all
<?php // Blog code
chdir('blog/');
ob_start();
require("index.php");
$blog = ob_get_contents();
ob_end_clean();
chdir('..');
echo $blog;
?>
That's the entire page. There's nothing above or below it.
Posted: Tue Jul 10, 2007 4:30 pm
by garvinhicking
Hi!
I suggest to use this index.php instead:
Code: Select all
<?php
header('Location: http://shanekillian.org/blog/index.php');
?>
Because when you chdir to a different directory without fixing up the $_SERVER['REQUEST_URI'] path et al, all follow-up links will not check that they were called not within the usual s9y directory.
HTH,
Garvin
Posted: Tue Jul 10, 2007 6:22 pm
by shanek
Okay, but that still leaves the problem of the page back not working.
Posted: Tue Jul 10, 2007 6:24 pm
by shanek
Besides, every single other link in the blog works except for that one, even without using a header redirect.