Page MenuHomePhabricator

http error 500: Internal Server Error & 'premature end of script headers'
Closed, ResolvedPublic

Description

Author: martinpre

Description:
Installion was fine, but after that when i want to browse the wiki, there comes
a http error 500 and the error log says 'premature end of script headers'.

The rights are alright, the package also (tested by localhost). I also uploaded
every file and i checked every time the ASCII/Binary thing.

A very strange thng is that i can't access index.php?title=Hauptseite but i can
access all special pages and pages without any content. Editing also doesn't work.

The server uses

  • MediaWiki: 1.8.2
  • PHP: 5.1.6 (cgi)
  • MySQL: 5.0.27

More information about the server configuration can be found at
https://server3.configcenter.info/info.php5
And i use the German version.


Version: 1.8.x
Severity: critical
OS: Linux
Platform: PC
URL: http://dev.waw.martinpre.net/wiki/

Details

Reference
bz8238

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:29 PM
bzimport set Reference to bz8238.
bzimport added a subscriber: Unknown Object (MLST).

Can you try the workaround described in bug 8041 ?

martinpre wrote:

I'm only a client of a big hoster and I can't change tht php installation.
Maybe he can update to 5.2. I will report my experiences if he do.

The suggested workaround is to change wfGetCaller() function in
GlobalSettings.php, not to upgrade PHP. :)

martinpre wrote:

But it also should solve the problem or did i understand something wrong?

martinpre wrote:

OK, should it look like this?

function wfGetCaller( $level = 2 ) { // <--- CHANGED BECAUSE OF BUG!!!!
/* $backtrace = debug_backtrace();
if ( isset( $backtrace[$level] ) ) {

		if ( isset( $backtrace[$level]['class'] ) ) {
			$caller = $backtrace[$level]['class'] . '::' . $backtrace[$level]['function'];
		} else {
			$caller = $backtrace[$level]['function'];
		}

} else {*/

		$caller = 'unknown';

// }
return $caller;
}

This doesn't work :(

martinpre wrote:

Oh the FTP program asked me if it shoul overwrite it or not *shameonme*

Now it works :)

*** This bug has been marked as a duplicate of 8041 ***