Page MenuHomePhabricator

Cannot redeclare class mediawiki_i18n in SkinTemplate.php
Closed, DeclinedPublic

Description

Author: loustyx

Description:
After update

cd phase3 && svn update
cd extensions && svn update
revision 14355.
cd phase3 && php -cli ./maintenance/update.php

I'm no longer login and when I try to login, I get blank page with message :

Fatal error: Cannot redeclare class mediawiki_i18n in
D:\Net\mediawiki\trunk\phase3\includes\SkinTemplate.php on line 43

Version:

  1. MediaWiki: 1.7alpha
  2. PHP: 4.3.10 (apache)
  3. MySQL: 4.1.9-max (EasyPHP 1.8.0.1)

Version: 1.7.x
Severity: major
OS: Windows XP
Platform: PC

Details

Reference
bz6058

Event Timeline

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

robchur wrote:

You'll need to advise us as to what version was upgraded from, what custom
extensions were installed and what, if anything, was printed out during the
upgrade process.

Also be aware that SVN trunk is no longer guaranteed to work with versions of
PHP older than 5.

loustyx wrote:

In fact, the error occured (apparently from without a cause) then I've upgraded.

I've update PHP and MediaWiki:

STyx@loustyx /cygdrive/d/Net/mediawiki/trunk
$ make update
cd phase3 && svn update
U config/index.php
...
Actualis?\195?\169 ?\195?\160 la r?\195?\169vision 14483.
cd extensions && svn update
...
Actualis?\195?\169 ?\195?\160 la r?\195?\169vision 14483.
cd phase3 && php -c c:/Util/EasyPHP/apache ./maintenance/update.php
MediaWiki 1.7alpha Updater

Going to run database updates for wikidb
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds...0
...already ...already ... have ... have ...
Done.

loustyx wrote:

NEW ERROR MESSAGE:

Fatal error: Cannot redeclare class skintemplate in
D:\Net\mediawiki\trunk\phase3\includes\SkinTemplate.php on line 1007

loustyx wrote:

VERSION:

  • MediaWiki: 1.7alpha (r14483)
  • PHP: 5.1.4 (apache)
  • MySQL: 4.1.9-max
  • Extensions: o Parser hooks: + CharInsert by Brion Vibber + Cite, adds <ref[ name=id]> and <references/> tags, for

citations, by Ævar Arnfjörð Bjarmason

      + Inputbox by Erik Moeller
      + ParserFunctions by Tim Starling 
o Extension functions:
      + wfSetupParserFunctions, setupSpecialChars, wfCite and

registerInputboxExtension

      o Parser extension tags:
            + <charinsert>, <ref>, <references> and <inputbox> 
* Hooks:
      o ParserClearState: (Cite, clearState)

loustyx wrote:

phpMyAdmin 2.6.1 reports:

Warning: Unknown: 1 result set(s) not freed. Use mysql_free_result to free
result sets which were requested using mysql_query() in Unknown on line 0

I think this is a related problem.

loustyx wrote:

I've solved the problem by recreating "LocalSettings.php" with "MediaWiki
1.7alpha Installation". :))

It reports:

Database wikidb exists

Warning: mysql_query() [http://www.mysql.com/doc]: Table 'wikidb.cur' doesn't
exist in d:\Net\mediawiki\trunk\phase3\includes\Database.php on line 428

loustyx wrote:

main changes in "LocalSettings.php" are :

  • $wgProxyKey value
  • new lines :
  • When you make changes to this configuration file, this will make
  • sure that cached pages are cleared.

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