"Next page" link not working

Found a bug? Tell us!!
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

"Next page" link not working

Post 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.
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

perhaps your settings for the urls / pathes in the config are wrong?
Ciao, Stephan
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post 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.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post 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).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post by shanek »

Okay, but that still leaves the problem of the page back not working.
shanek
Regular
Posts: 24
Joined: Sun Jul 08, 2007 11:46 pm

Post by shanek »

Besides, every single other link in the blog works except for that one, even without using a header redirect.
Post Reply