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!
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.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.