Recent Topics

1 Jan 05, 2008 03:16    

My b2evolution Version: 1.10.x

When trying to save a Draft Post, after a long wait I get:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Then when browsing back to admin.php I get the dashboard with

   * Post not publicly published: skipping notifications...


repeated 101 times in the grey section, and:

    * Post has been updated.


repeated 101 times in the green section.

The post is saved correctly, but the code does not seem to be working correctly.

Anyone else see this?

2 Jan 05, 2008 12:31

I have the same problem on a windows box, it basically goes into an infinite loop until the server bursts into tears :-/

You might be able to cure it by cracking open inc/_misc/_misc.funcs.php and changing this section of code ( approx 2356 ) :

	// <fp

	/* fp>why do we need this?
	   dh>because Location: redirects are supposed to be absolute.
	*/
	if( substr($redirect_to, 0, 1) == '/' )
	{ // relative URL, prepend current host:
		global $ReqHost;

		$redirect_to = $ReqHost.$redirect_to;
	}

¥

3 Jan 05, 2008 14:06

¥åßßå wrote:

I have the same problem on a windows box, it basically goes into an infinite loop until the server bursts into tears :-/

Yes, I'm on a Windows box too

¥åßßå wrote:

You might be able to cure it by cracking open inc/_misc/_misc.funcs.php and changing this section of code ( approx 2356 ) :

Actually, in 2.x I found it in inc/_core/_misc.funcs.php at exactly 2356 :D

¥åßßå wrote:

	// <fp

	/* fp>why do we need this?
	   dh>because Location: redirects are supposed to be absolute.
	*/
	if( substr($redirect_to, 0, 1) == '/' )
	{ // relative URL, prepend current host:
		global $ReqHost;

		$redirect_to = $ReqHost.$redirect_to;
	}


And your code worked perfectly
!! Thanks

I guess I'll need to do that change each upgrade? :-/

P

4 Jan 05, 2008 14:39

lol, ooops I'm always screwing up the paths :roll:

Off the top of my head I can't remember if this change has been implemented in 2.3.RC1 ..... ohhh yeah, you should update to that one ;) .... but it is *known* and is being worked on in a different way

¥

5 Jan 06, 2008 07:33

¥åßßå wrote:

Off the top of my head I can't remember if this change has been implemented in 2.3.RC1 ..... ohhh yeah, you should update to that one ;) .... but it is *known* and is being worked on in a different way
¥

I actually just updated to 2.3.RC1 and the change has been implemented by default :D

Edit: Not sure what happened, but just now the problem persisted so I checked the file again and I've had to re-edit it anyway!

Thanks for the help

6 Mar 29, 2008 22:59

That particular code in 2.4.1 is in
"inc/_core/template.funcs.php" aprox lines 80 to 88


Form is loading...