Topic on Project:Support desk

Warnings during importDump.php execution

7
Hanky (talkcontribs)

I'm using importDump.php script to import some wiki pages and sometimes I get the following warnings:

PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/var/www/html/wiki/languages/data/plurals.xml" in /var/www/html/wiki/includes/cache/LocalisationCache.php on line 547

PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/var/www/html/wiki/languages/data/plurals-mediawiki.xml" in /var/www/html/wiki/includes/cache/LocalisationCache.php on line 547

It doesn't occur everytime time but it's pretty annoying. How can I fix this?

I use Mediawiki 1.21.5

88.130.66.23 (talkcontribs)

You say you use MediaWiki 1.21.5. Do you use this version for both, export and import?

Hanky (talkcontribs)

No, I import from Russian Wikipedia and import to my local one, which has older version. Could this be a problem?

Ciencia Al Poder (talkcontribs)

If this doesn't happen consistently, maybe there's a contention issue on that file when importing data, like that file being read for every imported revision or something like this which may be a problem in concurrent reads.

You may want to file a bug report about it.

If this happens consistently, maybe the file is missing or you don't have read permissions.

Leucosticte (talkcontribs)

I'm getting the same issue with MW 1.25alpha, except that it's now line 656. The XML file I'm importing was exported from enwiki.

Ciencia Al Poder (talkcontribs)

What are the file permissions of plurals.xml and plurals-mediawiki.xml? Are those paths correct?

Leucosticte (talkcontribs)
[zsu23@ps375207:~/w/languages/data ] $ ls -l
total 28
-rw-rw-r-- 1 zsu23 pg5473640  3288 Nov  2 21:06 plurals-mediawiki.xml
-rw-rw-r-- 1 zsu23 pg5473640 22004 Nov  2 21:06 plurals.xml
Reply to "Warnings during importDump.php execution"