On Tue, Jun 13, 2006 at 04:32:20PM +0200, Christian Hammers wrote:
Fatal error: Call to a member function
getNamespace() on a non-object in
/usr/share/mediawiki1.5/includes/Article.php on line 936
The problem was apparently that there was UTF-8 encoded title strings
in the XML.
To spot such problems I would propose to add some status output similar
to:
--- includes/SpecialImport.php.orig 2006-06-13 17:00:47.476636412 +0200
+++ includes/SpecialImport.php 2006-06-13 17:03:56.866428299 +0200
@@ -203,6 +203,7 @@
$article = new Article( $this->title );
$pageId = $article->getId();
+ printf("Importing %s:%s<br>\n",
$this->title->getNamespace(), $this->title->getText());
if( $pageId == 0 ) {
# must create the page...
$pageId = $article->insertOn( $dbw );
tschüss,
-christian-
--
Christian Hammers WESTEND GmbH | Internet-Business-Provider
Technik CISCO Systems Partner - Authorized Reseller
Lütticher Straße 10 Tel 0241/701333-11
ch(a)westend.com D-52064 Aachen Fax 0241/911879