Page MenuHomePhabricator

Special pages doesn't work when MW is installed in Bulgarian
Closed, ResolvedPublic

Description

Author: dimitar.tsonev

Description:
It seems that there is an error in the messages file, because when the
installation is completed, the wiki doesn't use the Bulgarian language system
messages and displays empty pages (message that the pages doesn't exist) instead
of system pages.


Version: 1.8.x
Severity: critical

Details

Reference
bz7562

Event Timeline

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

Works fine in current trunk and on Wikipedia.

Please be more specific if possible:

  • exact version of MediaWiki
  • configuration?
  • URL to a site exhibiting the problem
  • Bug 7564 has been marked as a duplicate of this bug. ***
  • Bug 7563 has been marked as a duplicate of this bug. ***

dimitar.tsonev wrote:

(In reply to comment #1)

Works fine in current trunk and on Wikipedia.

Please be more specific if possible:

  • exact version of MediaWiki
  • configuration?
  • URL to a site exhibiting the problem

Sure,
I've just installed a new wiki (MediaWiki 1.8.1), downloaded from the
Sourceforge page.

  • PHP 5.0.4 installed
  • Found database drivers for: MySQL * Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security

vulnerabilities.

  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.
  • PHP is configured with no memory_limit.
  • Have zlib support; enabling output compression.
  • Couldn't find Turck MMCache, eAccelerator or APC. Object caching functions

cannot be used.

  • GNU diff3 not found.
  • Found GD graphics library built-in, image thumbnailing will be enabled if

you enable uploads.

  • Installation directory: D:\www\xampp\htdocs\mediawiki-1.8.1
  • Script URI path: /mediawiki-1.8.1
  • Environment checked. You can install MediaWiki.
  • Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider

changing it manually.

  Generating configuration file...
* Database type: MySQL
* Loading class: DatabaseMysql
* Attempting to connect to database server as website...success.
* Connected to 4.1.12
* Created database testmw
* Creating tables... using MySQL 4 table defs... done.
* Initializing data...
* Created sysop account DCLXVI.
* Initialising "MediaWiki" namespace for language code bg...
* Done. Updated: 0, inserted: 1495, kept: 0.

Creating LocalSettings.php...

Installation successful! Move the config/LocalSettings.php file into the parent
directory, then follow this link to your wiki.

jimmy.collins wrote:

Did you modify LocalSettings.php after setup?

dimitar.tsonev wrote:

(In reply to comment #5)

Did you modify LocalSettings.php after setup?

No, I can post the content here (w/out the db password, of course) if that will
help, but the file was created by the installer.

jimmy.collins wrote:

(In reply to comment #6)

No, I can post the content here (w/out the db password, of course) if that will
help, but the file was created by the installer.

Yes - please post it here. It seems that all of your Namespaces are broken...

dimitar.tsonev wrote:

(In reply to comment #7)

(In reply to comment #6)

No, I can post the content here (w/out the db password, of course) if that will
help, but the file was created by the installer.

Yes - please post it here. It seems that all of your Namespaces are broken...

<?php

  1. This file was automatically generated by the MediaWiki installer.
  2. If you make manual changes, please keep track in case you need to
  3. recreate them later. #
  4. See includes/DefaultSettings.php for all configurable settings
  5. and their default values, but don't forget to make changes in _this_
  6. file, not there.
  1. If you customize your file layout, set $IP to the directory that contains
  2. the other MediaWiki files. It will be used as a base to locate files.

if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( FILE );
}

$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR .
get_include_path() );

require_once( "includes/DefaultSettings.php" );

  1. If PHP's memory limit is very low, some operations may fail.
  2. ini_set( 'memory_limit', '20M' );

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 ) ) {

  1. Compress output if the browser supports it

if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}

$wgSitename = "Test";

$wgScriptPath = "/mediawiki-1.8.1";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";

  1. For more information on customizing the URLs please see:
  2. http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
  3. If using PHP as a CGI module, the ?title= style usually must be used.

$wgArticlePath = "$wgScript/$1";

$wgArticlePath = "$wgScript?title=$1";

$wgStylePath = "$wgScriptPath/skins";
$wgStyleDirectory = "$IP/skins";
$wgLogo = "$wgStylePath/common/images/wiki.png";

$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";

$wgEnableEmail = false;
$wgEnableUserEmail = false;

$wgEmergencyContact = "dimitar.tsonev@gmail.com";
$wgPasswordSender = "dimitar.tsonev@gmail.com";

  1. For a detailed description of the following switches see
  2. http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
  3. There are many more options for fine tuning available see
  4. /includes/DefaultSettings.php
  5. UPO means: this is also a user preference option

$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = false;

$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "something";
$wgDBuser = "something";
$wgDBpassword = "something";
$wgDBport = "something";
$wgDBprefix = "";

Schemas for Postgres

$wgDBmwschema = "mediawiki";
$wgDBts2schema = "public";

Experimental charset support for MySQL 4.1/5.0.

$wgDBmysql5 = false;

Shared memory settings

$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

  1. To enable image uploads, make sure the 'images' directory
  2. is writable, then set this to true:

$wgEnableUploads = false;
$wgUseImageResize = true;

  1. $wgUseImageMagick = true;
  2. $wgImageMagickConvertCommand = "/usr/bin/convert";
    1. If you want to use image uploads under safe mode,
    2. create the directories images/archive, images/thumb and
    3. images/temp, and make them all writable. Then uncomment
    4. this, if it's not already uncommented:
  1. $wgHashedUploadDirectory = false;
  1. If you have the appropriate support software installed
  2. you can enable inline LaTeX equations:

$wgUseTeX = false;
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";

$wgLocalInterwiki = $wgSitename;

$wgLanguageCode = "bg";

$wgProxyKey = "removed";

  1. Default skin: you can change the default skin. Use the internal symbolic
  2. names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':

$wgDefaultSkin = 'monobook';

    1. For attaching licensing metadata to pages, and displaying an
    2. appropriate copyright notice / icon. GNU Free Documentation
    3. License and Creative Commons licenses are supported so far.
  1. $wgEnableCreativeCommonsRdf = true;

$wgRightsPage = ""; # Set to the title of a wiki page that describes your
license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";

$wgRightsCode = ""; # Not yet used

$wgDiff3 = "";

  1. When you make changes to this configuration file, this will make
  2. sure that cached pages are cleared.

$configdate = gmdate( 'YmdHis', @filemtime( FILE ) );
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );

?>

Don't post large files in comments please; attach them if necessary.

What we could use is the output of the phpinfo() function,
and the exact version of XAMPP you have installed.

dimitar.tsonev wrote:

(In reply to comment #9)

Don't post large files in comments please; attach them if necessary.

What we could use is the output of the phpinfo() function,
and the exact version of XAMPP you have installed.

Okay, I'm sorry.

phpinfo() -> http://gregg.mine.nu/phpinfo.php

I don't know the version of XAMPP, but it is quite old, the package includes
PHP: 5.0.4 (apache2handler) and MySQL: 4.1.12

I can reproduce this with XAMPP 1.5.4 (the current download) on Windows XP SP 2.
Will investigate...

dimitar.tsonev wrote:

Okay, thanks. I don't know if that will help you somehow, but I have another
MediaWiki here, on the same machine, version 1.7.1 and everything is okay there.

Fixed on trunk in r16995 and on REL1_8 in r16997, will be in 1.8.2.