php-xml uninstallable on CentOS

  • Posted November 10, 2013

WordPress Import Pluging is causing WordPress white screen of death.

WordPress debugger gives me following error.

Fatal error: Class ‘DOMDocument’ not found in /var/www/wordpress/wp-content/plugins/wordpress-importer/parsers.php on line 61

It can be fixed by installing php-xml as reported in this thread

I get following errors when I install php-xml

sudo yum install php-xml [sudo] password for donnie: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

  • base:
  • epel:
  • extras:
  • updates: Setting up Install Process Resolving Dependencies –> Running transaction check —> Package php-xml.i686 0:5.3.3-23.el6_4 will be installed –> Processing Dependency: php-common(x86-32) = 5.3.3-23.el6_4 for package: php-xml-5.3.3-23.el6_4.i686 –> Finished Dependency Resolution Error: Package: php-xml-5.3.3-23.el6_4.i686 (updates) Requires: php-common(x86-32) = 5.3.3-23.el6_4 Installed: php-common-5.4.21-2.el6.remi.i686 (@remi) php-common(x86-32) = 5.4.21-2.el6.remi Available: php-common-5.3.3-22.el6.i686 (base) php-common(x86-32) = 5.3.3-22.el6 Available: php-common-5.3.3-23.el6_4.i686 (updates) php-common(x86-32) = 5.3.3-23.el6_4 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

Submit an 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.

Thanks Nasser. I went nuclear as it was a new droplet and I have not used rpm based distros, I reinstalled with php-xml before anything. It worked.

Try running this command instead: <br> <br><pre>yum --enablerepo remi install php-xml</pre>

I meant to say php-xml is not installable.