Thread:Project:Support desk/Firefox content encoding error during upgrading tables (MW 1.23.5)

Is this a bug during the upgrade process?

During upgrading to Mediawiki 1.23.5, Firefox gives me a "Content encoding" error while trying to upgrade the MW tables (details below). After finding a workaround (see below). Using phpinfo, it appears that server compression using gzip is correctly enabled. It has been suggested that Mediawiki is incorrectly compression output too.

My old localsettings.php includes some lines which enable compression (extract below). I wonder whether these lines do not correctly detect that the server already has compression enable?

Should the upgrade also check and upgrade "localsettings.php" where necessary?

Firefox error workaround


 * 1) Set the URL to about:config page
 * 2) Filter "network.http.accept-encoding"
 * 3) Set it to "" (empty string).

How to repeat error


 * 1) Go to /mw-config/
 * 2) Language page: click Continue
 * 3) Existing wiki page: Enter Upgrade key: 82267.....e5e3, click Continue
 * 4) Welcome to MediaWiki! Click continue
 * 5) Upgrade existing installation: Click continue
 * 6) Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

localsettings.php extract

if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } elseif ( empty( $wgNoOutputBuffer ) ) { ## Compress output if the browser supports it	if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); }