importDump.php error, WikiRevision given a null title in import.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

importDump.php error, WikiRevision given a null title in import.

Noah Spurrier

I am able to import over 700 articles using importDump.php, but
part way through the process I get get an exception complaining that
a Wiki Revision was given a null title. Any tips on how to resolve this?
I'm using MediaWiki 1.7.1 with a wiki dump downloaded current
from August 17th.

Do I need to provide more information?

# bunzip2 -dc /root/enwiki-latest-pages-articles.xml.bz2 | /var/www/PHP
maintenance/importDump.php
100 (257.70138911503 pages/sec 257.70138911503 revs/sec)
200 (215.85242404671 pages/sec 215.85242404671 revs/sec)
300 (194.56211852307 pages/sec 194.56211852307 revs/sec)
400 (188.27240827463 pages/sec 188.27240827463 revs/sec)
500 (189.25815368724 pages/sec 189.25815368724 revs/sec)
600 (177.78198503318 pages/sec 177.78198503318 revs/sec)
700 (177.9798646001 pages/sec 177.9798646001 revs/sec)
WikiRevision given a null title in import.
Backtrace:
#0
/var/www/usr/local/apache2/vhosts/10.3.0.13/wiki/includes/SpecialImport.php(620):
WikiRevision->setTitle(NULL)
#1 [internal function]: WikiImporter->in_page(Resource id #51, 'revision',
Array)
#2
/var/www/usr/local/apache2/vhosts/10.3.0.13/wiki/includes/SpecialImport.php(418):
xml_parse(Resource id #51, 'idsummer Night'...', 0)
#3
/var/www/usr/local/apache2/vhosts/10.3.0.13/wiki/maintenance/importDump.php(110):
WikiImporter->doImport()
#4
/var/www/usr/local/apache2/vhosts/10.3.0.13/wiki/maintenance/importDump.php(97):
BackupReader->importFromHandle(Resource id #50)
#5
/var/www/usr/local/apache2/vhosts/10.3.0.13/wiki/maintenance/importDump.php(132):
BackupReader->importFromStdin()
#6 {main}






_______________________________________________
Wikitech-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: importDump.php error, WikiRevision given a null title in import.

Brion Vibber
Noah Spurrier wrote:
> I am able to import over 700 articles using importDump.php, but
> part way through the process I get get an exception complaining that
> a Wiki Revision was given a null title. Any tips on how to resolve this?
> I'm using MediaWiki 1.7.1 with a wiki dump downloaded current
> from August 17th.

From a Wikimedia site? Add '+' to $wgLegalTitleChars.

-- brion vibber (brion @ pobox.com)


_______________________________________________
Wikitech-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/wikitech-l

signature.asc (257 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: importDump.php error, WikiRevision given a null title in import.

Noah Spurrier
In reply to this post by Noah Spurrier
>Date: Mon, 11 Sep 2006 21:14:34 +0200
>From: Brion Vibber <[hidden email]>
>Subject: Re: [Wikitech-l] importDump.php error, WikiRevision given a
>        null title in import.
>To: Wikimedia developers <[hidden email]>
>Message-ID: <[hidden email]>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Noah Spurrier wrote:
>> I am able to import over 700 articles using importDump.php, but
>> part way through the process I get get an exception complaining that
>> a Wiki Revision was given a null title. Any tips on how to resolve this?
>> I'm using MediaWiki 1.7.1 with a wiki dump downloaded current
>> from August 17th.
>
>>From a Wikimedia site? Add '+' to $wgLegalTitleChars.
>
>-- brion vibber (brion @ pobox.com)

That worked perfectly; although, it seems strange that the default
MediaWiki configuration is not compatible with a Wikipedia dump.

I edited includes/DefaultSettings.php and added a + to this line 175:
  $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF";
to get this line:
  $wgLegalTitleChars = " +%!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF";

Yours,
Noah


_______________________________________________
Wikitech-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Reply | Threaded
Open this post in threaded view
|

Re: importDump.php error, WikiRevision given a null title in import.

Simetrical
On 9/13/06, Noah Spurrier <[hidden email]> wrote:
> I edited includes/DefaultSettings.php

Don't edit DefaultSettings.  It's called "default" for a reason.  Any
changes you make will be overwritten if/when you upgrade.  Add the
line to LocalSettings--that's what it's for.
_______________________________________________
Wikitech-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/wikitech-l