Last modified: 2006-06-12 11:45:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6058 - Cannot redeclare class mediawiki_i18n in SkinTemplate.php
Cannot redeclare class mediawiki_i18n in SkinTemplate.php
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
PC Windows XP
: High major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-05-23 15:34 UTC by STyx
Modified: 2006-06-12 11:45 UTC (History)
0 users

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


Description STyx 2006-05-23 15:34:44 UTC
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

#  MediaWiki: 1.7alpha
# PHP: 4.3.10 (apache)
# MySQL: 4.1.9-max (EasyPHP
Comment 2 Rob Church 2006-05-28 21:50:26 UTC
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.
Comment 3 STyx 2006-05-30 16:18:47 UTC
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 ...
Comment 4 STyx 2006-05-30 16:19:32 UTC

Fatal error: Cannot redeclare class skintemplate in
D:\Net\mediawiki\trunk\phase3\includes\SkinTemplate.php on line 1007
Comment 5 STyx 2006-05-30 16:21:32 UTC
    * 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
          o Parser extension tags:
                + <charinsert>, <ref>, <references> and <inputbox> 
    * Hooks:
          o ParserClearState: (Cite, clearState) 

Comment 6 STyx 2006-05-30 16:24:17 UTC
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.
Comment 7 STyx 2006-06-02 15:00:37 UTC
I've solved the problem by recreating "LocalSettings.php" with "MediaWiki
1.7alpha Installation". :))

It reports:

# Database wikidb exists

Warning: mysql_query() []: Table 'wikidb.cur' doesn't
exist in d:\Net\mediawiki\trunk\phase3\includes\Database.php on line 428
Comment 8 STyx 2006-06-02 15:03:59 UTC
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 );

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