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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello, all
In order to install XMLWriter on Ubuntu use:
sudo apt-get install php-xml
and then restart your web server (Apache/Nginx)
If you want to install it for specific PHP version you can use this command:
sudo apt-get install php7.3-xml
and then again restart your web server.
For CentOS:
yum install libxml2
yum install php-xmlwriter
yum install php-xml
Once this is done you’ll need to restart the web server.
You can also check with a phpinfo file if the extension is enabled or use the following command in your terminal:
php -i | grep xmlwriter
The output should be:
root@digitalocean:~# php -i | grep xmlwriter
/etc/php/7.2/cli/conf.d/20-xmlwriter.ini,
xmlwriter
Hope that this helps! Regards, Alex
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
