Page MenuHomePhabricator

Not able to import XML data dump
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • I tried to import data from XML file using the importDump utility...
  • # php ./maintenance/importDump.php mrwiki-latest-pages-articles-multistream.xml

What happens?:

Got this error:

MWException from line 2108 of /var/www/html/mediawiki-1.36.1/includes/parser/Parser.php: PCRE needs to be compiled with --enable-unicode-properties in order for MediaWiki to function

What should have happened instead?:
The import should complete without any interruption.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

I downloaded the source code of PCRE and run make / make install but that did not work. I am using the official docker image of mediawiki if that matters.

https://hub.docker.com/_/mediawiki

pcretest -C command shows that the unicode is supported, but php script fails.

Google search reveals that there are other users facing the same issue but there is no solution or the solution did not work.

Event Timeline

brennen subscribed.

I downloaded the source code of PCRE and run make / make install but that did not work. I am using the official docker image of mediawiki if that matters.

https://hub.docker.com/_/mediawiki

Confusingly enough, this isn't what's meant by the MediaWiki-Docker tag, which refers to the docker-compose environment provided in mw/core.

Images for that project are built under dev-images.

You probably want Docker-Hub-MediaWiki.