Last modified: 2011-06-09 20:14:15 UTC
For some reason, after I ran the command[1] php importDump.php ~/Downloads/ptwikibooks-20110531-pages-meta-current.xml I get the following errors: ---- "" is not a valid magic thingie for "prevpagename" "" is not a valid magic thingie for "prevpagenamee" "" is not a valid magic thingie for "nextpagename" "" is not a valid magic thingie for "nextpagenamee" "" is not a valid magic thingie for "rootpagename" "" is not a valid magic thingie for "rootpagenamee" "" is not a valid magic thingie for "chaptername" "" is not a valid magic thingie for "chapternamee" "" is not a valid magic thingie for "randomchapter" "" is not a valid magic thingie for "randomchaptere" ---- After this it seemed that the script stopped but then, a few minutes later, It was displayed also the following: ---- PHP Warning: include(/var/www/mediawiki/extensions/BookManager/languages/BookManager.i18n.php): failed to open stream: No such file or directory in /var/www/mediawiki/includes/LocalisationCache.php on line 410 PHP Warning: include(): Failed opening '/var/www/mediawiki/extensions/BookManager/languages/BookManager.i18n.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki/includes/LocalisationCache.php on line 410 PHP Warning: include(/var/www/mediawiki/extensions/BookManager/languages/BookManager.i18n.magic.php): failed to open stream: No such file or directory in /var/www/mediawiki/includes/LocalisationCache.php on line 410 PHP Warning: include(): Failed opening '/var/www/mediawiki/extensions/BookManager/languages/BookManager.i18n.magic.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki/includes/LocalisationCache.php on line 410 PHP Warning: include(/var/www/mediawiki/extensions/BookManager/languages/BookManager.alias.php): failed to open stream: No such file or directory in /var/www/mediawiki/includes/LocalisationCache.php on line 410 PHP Warning: include(): Failed opening '/var/www/mediawiki/extensions/BookManager/languages/BookManager.alias.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mediawiki/includes/LocalisationCache.php on line 410 ---- The names in the firt errors above are present in the code of [[mw:Extension:BookManager]] if I remember correctly, but I don't know if the cause for the errors is a bug in BookManager or in importDump.php (maybe both?). [1] described on http://www.mediawiki.org/wiki/Manual:Importing_XML_dumps
... "extensions/BookManager/languages/BookManager.i18n.php" The actual directory appears to be called "language" not "languages", so that might be suspicious. :) $wgExtensionMessagesFiles['BookManager'] = $dir . '/languages/BookManager.i18n.php'; $wgExtensionMessagesFiles['BookManagerMagic'] = $dir . '/languages/BookManager.i18n.magic.php'; $wgExtensionAliasesFiles['BookManager'] = $dir . '/languages/BookManager.alias.php'; ^ wrong
Fixed in r89786.
Thanks for finding and fixing it! =)