From 3b571e768cf80b39a2464a089d52c2b49187e2c2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 10 Dec 2008 22:41:13 +0000 Subject: [PATCH] Attempting to import a title that came out as an interwiki would sort of half-work somewhere then explode when trying to save the null revision with the import info: Fatal error: Call to a member function insertOn() on a non-object in /Library/WebServer/Documents/trunk/includes/specials/SpecialImport.php on line 305 Now such titles are skipped. You can probably force import of the page by forcing the target namespace... Better long-term solution might include title renormalization, adapation of remote namespace names (eg Wikipedia -> Project), etc. --- includes/Import.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Import.php b/includes/Import.php index 7c98b68613..56e7a7fb96 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -776,6 +776,9 @@ class WikiImporter { if( is_null( $this->pageTitle ) ) { // Invalid page title? Ignore the page $this->notice( "Skipping invalid page title '$this->workTitle'" ); + } elseif( $this->pageTitle->getInterwiki() != '' ) { + $this->notice( "Skipping interwiki page title '$this->workTitle'" ); + $this->pageTitle = null; } else { $this->pageCallback( $this->workTitle ); } -- 2.20.1