Last modified: 2010-05-15 15:29:36 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 28 - Upgrade error 1.2.4 -> 1.3.0.beta6
Upgrade error 1.2.4 -> 1.3.0.beta6
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.3.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 274
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-14 06:13 UTC by Timwi
Modified: 2010-05-15 15:29 UTC (History)
2 users (show)

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


Attachments

Description Timwi 2004-08-14 06:13:45 UTC
BUG MIGRATED FROM SOURCEFORGE
    http://sourceforge.net/tracker/index.php?func=detail&aid=1005807&group_id=34373&atid=411192
    Originally submitted by Thomas Rother (thommie)  2004-08-09 09:34


    Test upgrade of a running mediawiki 1.2.4 to 1.3.0
beta6 failed with a blank start page, code:

<html><body></body></html>

(no php at all)

and the following error messages in the php error log:

[09-Aug-2004 09:14:39] PHP Warning:  Cannot modify
header information - headers already sent by (output
started at
/usr/local/ftp/gaiaev/mediawiki2/config/index.php:32)
in Unknown on line 0
[09-Aug-2004 09:16:38] PHP Fatal error:  Call to a
member function on a non-object in
/usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on
line 1638
[09-Aug-2004 09:17:17] PHP Fatal error:  Call to a
member function on a non-object in
/usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on
line 1638
[09-Aug-2004 09:18:16] PHP Fatal error:  Call to a
member function on a non-object in
/usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on
line 1638
[09-Aug-2004 09:18:18] PHP Fatal error:  Call to a
member function on a non-object in
/usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on
line 1638
[09-Aug-2004 09:18:19] PHP Fatal error:  Call to a
member function on a non-object in
/usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on
line 1638
intraweb:/usr/local/ftp/gaiaev/mediawiki2 #   

Environment:
Apache/1.3.28  PHP 4.3.1 (register_globals=off)
MySQL 4.0.15-Max

Install log attached

    ------------------------- Additional comments ------------------------
    Date: 2004-08-09 10:09
Sender: SF user thommie

Confirmed for a second wiki on the same machine with the
same upgrade type (1.2.4 to 1.3.0 beta6)
-------------------------------------------------
Date: 2004-08-09 11:56
Sender: SF user vibber

Cannot reproduce with upgrade of freshly installed 1.2.4 to 
1.3.0beta6. PHP 4.3.2, MySQL 4.0.17, set for English/UTF-8.

The error is related to a badly specified title, so it would
help to know
more about your configuration (language settings, if you've 
customized messages such as the main page setting) and also if
you
could check whether other pages on the wiki work than the main
page.
Other wiki pages? Special pages?

-------------------------------------------------
Date: 2004-08-09 12:55
Sender: nobody
Logged In: NO 

From LocalSettings.php:
$wgLanguageCode = "de";
$wgUseLatin1 = true;

If I enter a page URL from the old 1.2.4 wiki into the new
one, I get a valid page, but it is the startpage, not the
sub-page:

old URL 
https://intraweb.gaia.de/gaiaev/mediawiki/index.php/Hauptseite

new URL
https://intraweb.gaia.de/gaiaev/mediawiki2/index.php/Hauptseite#S
ysop-Grundlagen

The "new URL" page shows a lot of  "#redirect
[[Vorlage:Mainpage]] # Wikipedia-Portal"" links. 

("Vorlage" means "Template"). 

"Recentchanges" ist also present, but with a lot of "
(#redirect [[Vorlage:Diff]] ) (#redirect [[Vorlage:Hist]] )
. . #redirect [[Vorlage:Minoreditletter]]  GP-Portalprojekt;
)" entries.

Unfortunately, the wikis are internal, just let me know what
info you need, I will check it.
-------------------------------------------------
Date: 2004-08-09 12:57
Sender: nobody
Logged In: NO 

Addendum:

https://intraweb.gaia.de/gaiaev/mediawiki2/index.php

results in a blank page, but

https://intraweb.gaia.de/gaiaev/mediawiki2/index.php/Hauptseite

shows the start page, but with the strange Redirect links.

-------------------------------------------------
Date: 2004-08-09 13:01
Sender: SF user thommie

Here is the output page for "Hauptseite" (main page) as
described above
-------------------------------------------------
Date: 2004-08-09 13:14
Sender: SF user vibber

Ok, I haven't been able to reproduce the source of the problem
on my
test system yet, but the problem itself is that most of the MediaWiki:
message pages were moved to the template namespace which were
not
supposed to.

It's only supposed to move the ones that are _not_ part of MediaWiki's
own localization system; when it moves its own messages it ends
up
screwing the whole thing up.

You should be able to do a batch regeneration of the MediaWiki: 
namespace with the 'rebuildMessages.php' script in the maintenance
directory; it has to be run from the command line and may be
a bit
tempermental.

-------------------------------------------------
Date: 2004-08-09 14:27
Sender: SF user thommie

Hi,
I started 

intraweb:/usr/local/ftp/gaiaev/mediawiki2/maintenance # php
rebuildMessages.php rebuild
Initialising "MediaWiki" namespace...
intraweb:/usr/local/ftp/gaiaev/mediawiki2/maintenance #  

But nothing much happens here ... I see no activities in the
db, no script replieson the shell... 

How can I conrol if it has finished its job correctly?
-------------------------------------------------
Date: 2004-08-10 07:18
Sender: nobody
Logged In: NO 

Brion, I can't see any changes in the database after "php
rebuildMessages.php". I could also find no documentation on
http://meta.wikimedia.org/....
-------------------------------------------------
Date: 2004-08-11 04:12
Sender: SF user vibber

To get rebuildMessages working again:
* Add this line near the top of includes/LoadBalancer.php:
  require_once( "Database.php" );
* Move this line in includes/commandLine.inc from near the bottom
to
near the top:
  define( "MEDIAWIKI", true );

(This is included in latest CVS, but anon CVS is behind.)

-------------------------------------------------
Date: 2004-08-11 12:29
Sender: SF user thommie

Tried fresh upgrade 1.24 -> CVS code (11.8.04). Installation
error from maintenance/convertLinks.inc , see attachment.
Comment 1 Thommie Rother 2004-08-25 14:13:34 UTC
Re-confirmed for update from 1.24 -> 1.3.1. The update process works fine,
including the updates of the old database (now 23 tables instead of 19 for
1.2x). But the resulting wiki/database is somehow broken. PHP Error message:

[25-Aug-2004 10:47:24] PHP Warning:  Cannot modify header information - headers
already sent by (output started at
/usr/local/ftp/gaiaev/mediawiki2/config/index.php:32) in Unknown on line 0
[25-Aug-2004 10:48:54] PHP Fatal error:  Call to a member function on a
non-object in /usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on line 1647
[25-Aug-2004 10:54:22] PHP Fatal error:  Call to a member function on a
non-object in /usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on line 1647
[25-Aug-2004 10:54:23] PHP Fatal error:  Call to a member function on a
non-object in /usr/local/ftp/gaiaev/mediawiki2/includes/Skin.php on line 1647

For details see previous comments. I also tried to use the
maintenance/rebuildMessages.php, without success. It just doesn't start -
although AdminSettings.php is present, there is no sql activity from that script
and no php error msg.
Comment 2 Thommie Rother 2004-09-02 22:25:08 UTC
Problem solved with

"php maintenance/rebuildMessages.php"

Enter "2" (brion: because output buffering is broken)

Wait ...

Script returns (after some time):

"Initialising "MediaWiki" namespace...
Clearing message cache...Done."
Comment 3 Brion Vibber 2004-09-02 22:33:17 UTC
Problem was that essential MediaWiki: entries had been redirected into Template space, triggering bug 274.

Should check the upgrade scripts to make sure this won't happen on a regular basis...
Comment 4 Brion Vibber 2005-03-27 07:48:50 UTC
The template move script is no longer automatically run on update as of 1.4.0, so anyone who was using MediaWiki: pages 
for templates will need to manually update them on upgrade.

This should now be safe, and avoid these kinds of weird upgrade problems. Resolving as fixed.

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


Navigation
Links