how to install XMLWriter PHP modules

October 3, 2016 7.7k views
WordPress

when i installed wp all import plugin, it gave me this error:
" Required PHP components are missing.

WP All Import requires DOMDocument, XMLReader, and XMLWriter PHP modules to be installed.
These are standard features of PHP, and are necessary for WP All Import to read the files you are trying to import.
Please contact your web hosting provider and ask them to install and activate the DOMDocument, XMLReader, and XMLWriter PHP modules."

how can i solve this?

2 Answers

These modules are packaged separately by Ubuntu (assuming that you are using Ubuntu).

The following should resolve the problem:

Ubuntu 14.04

sudo apt-get update 
sudo apt-get install php5-xml

Ubuntu 16.04

sudo apt-get update 
sudo apt-get install php7.0-xml

This is not working...

I followed the steps
sudo apt-get update
sudo apt-get install php5-xml

still got error

root@mint:~# sudo apt-get install php5-xml
Reading package lists... Done
Building dependency tree

Reading state information... Done
E: Unable to locate package php5-xml

Have another answer? Share your knowledge.