Last modified: 2011-06-09 20:14:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31313, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29313 - BookManager shouldn't cause errors on /maintenance/importDump.php
BookManager shouldn't cause errors on /maintenance/importDump.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
BookManager (Other open bugs)
unspecified
All Linux
: Unprioritized normal (vote)
: ---
Assigned To: Raylton P. Sousa
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-08 01:57 UTC by Helder
Modified: 2011-06-09 20:14 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2011-06-08 01:57:13 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
Comment 1 Brion Vibber 2011-06-08 18:41:15 UTC
... "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
Comment 2 Alexandre Emsenhuber [IAlex] 2011-06-09 18:43:27 UTC
Fixed in r89786.
Comment 3 Helder 2011-06-09 20:14:15 UTC
Thanks for finding and fixing it! =)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links