Last modified: 2010-05-15 15:42:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10238, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8238 - http error 500: Internal Server Error & 'premature end of script headers'
http error 500: Internal Server Error & 'premature end of script headers'
Status: RESOLVED DUPLICATE of bug 8041
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
PC Linux
: High critical (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-12-12 16:18 UTC by martinpre
Modified: 2010-05-15 15:42 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description martinpre 2006-12-12 16:18:51 UTC
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
And i use the German version.
Comment 1 Brion Vibber 2006-12-12 19:44:35 UTC
Can you try the workaround described in bug 8041 ?
Comment 2 martinpre 2006-12-12 19:55:30 UTC
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.
Comment 3 Brion Vibber 2006-12-12 20:25:18 UTC
The suggested workaround is to change wfGetCaller() function in
GlobalSettings.php, not to upgrade PHP. :)
Comment 4 martinpre 2006-12-12 20:32:28 UTC
But it also should solve the problem or did i understand something wrong?
Comment 5 martinpre 2006-12-12 20:37:43 UTC
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 :(
Comment 6 martinpre 2006-12-12 20:41:24 UTC
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 ***

Note You need to log in before you can comment on or make changes to this bug.