https://bugzilla.wikimedia.org/show_bug.cgi?id=28277

--- Comment #20 from mybugs.m...@gmail.com 2011-10-27 14:41:22 UTC ---
I was able to reproduce the problem on my copy of MW 1.18.

First, I downloaded [[mw:Extension:Interwiki]] and put the following on my
LocalSettings.php:
require_once("$IP/extensions/Interwiki/Interwiki.php");
    $wgGroupPermissions['*']['interwiki'] = false;
    $wgGroupPermissions['sysop']['interwiki'] = true;
    $wgImportSources = array(
          'w2',
          'en2',
          'w2:en',
          'en2:w'
    );

Then, I went to [[Special:Interwikis]] and:
* added prefix "en2" (http://en.wikibooks.org/wiki/$1) (trans: 0) (local: 1) to
the interwiki table ‎
* added prefix "w2" (http://pt.wikipedia.org/wiki/$1) (trans: 0) (local: 1) to
the interwiki table ‎

After this, links such as
*[[:w2:Main Page]] points to http://pt.wikipedia.org/wiki/Main Page
*[[:en2:Main Page]] points to http://en.wikibooks.org/wiki/Main Page
*[[:w2:en:Main Page]] points to http://pt.wikipedia.org/wiki/en:Main Page
*[[:en2:w:Main Page]] points to http://en.wikibooks.org/wiki/w:Main Page
(I did this just to check if I configured the extension correctly).

Then, I opened [[Special:Import]] and typed "Main Page" in the field and
unselected "Copy all history revisions for this page". The result of trying to
import from each of my sources was:
* w2: ok
* en2: ok
* w2:en: Import failed: Expected <mediawiki> tag, got
* en2:w: Import failed: Expected <mediawiki> tag, got

In these two cases, there was also some warnings on top of page. The source
"w2:en" caused these:
----
Warning: XMLReader::read(): uploadsource://0785606dfa54a2a22d337ef4c81f95d3:1:
parser error : Extra content at the end of the document in
/var/www/mw18/includes/Import.php on line 362

Warning: XMLReader::read():  in /var/www/mw18/includes/Import.php on line 362

Warning: XMLReader::read(): ^ in /var/www/mw18/includes/Import.php on line 362

Warning: XMLReader::read(): An Error Occured while reading in
/var/www/mw18/includes/Import.php on line 362
----

The source "en2:w" also caused the same warnings, but with
"uploadsource://c98a4f54d974dd8ad71a24618a955a83:1:" instead.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to