Social Media Magazine

Fix WordPress Import Not Working

Posted on the 11 June 2017 by Pro Webguru @prowebguru

Recently I was working on one project in which I wanted to export posts from one instance and import into another wordpress instance. It was a RHEL server and some basic php related softwares were installed. But when I tried to import posts into this wordpress instance then I was not able to import posts.

I started debugging and found following error in log

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

If wordpress import is not working and showing above error then probably your linux server doesn't have php-dom installed. Php-dom extension for parsing dom.

I was using RHEL (Red Hat Enterprise Linux) server. To install "php-dom" in RHEL you can use following command

yum install php-dom

The above command may vary as per your linux distribution you are using.

If you are using another version of linux and not able to import posts into wordpress then let me know which command did you use.

You Might Also Like :

Back to Featured Articles on Logo Paperblog

These articles might interest you :

  • Express Your Ex With Gemstone Diamond Engagement Rings

    Express Your With Gemstone Diamond Engagement Rings

    Morganite engagement rings have grown to be symbolic of real love and commitment to that modern couples. A diamond ring you proudly you should get some... Read more

    13 hours, 59 minutes ago by   Jayshreebhagat
  • To Die For Blondies


    What is a Blondie? It is the dense, more caramel like version of a brownie, but every bit as dense and fudgy in texture. They are incredibly sweet and incredibl... Read more

    14 hours, 34 minutes ago by   Mariealicerayner
  • Go Organic with Kin-Kin Natural – Eco Friendly Natural Dishwashing Liquid

    Organic with Kin-Kin Natural Friendly Dishwashing Liquid

    If you are contemplating changes to your home and life in an effort to be more responsible to the environment you need to start using natural and organic... Read more

    15 hours, 5 minutes ago by   Kravelv
  • Like Nowhere Else: the Allure of Panama’s Guna Yala

    Like Nowhere Else: Allure Panama’s Guna Yala

    Headwinds. Choppy seas. Eyeball navigation through reefs where the usual tropical cues are absent. Days of gray skies. Taciturn communities. Few supplies. Read more

    The 22 March 2018 by   Behan Gifford
  • BNV004: 10 Tips for Becoming a Brand New Vegan

    BNV004: Tips Becoming Brand Vegan

    In episode 4 of the Brand New Vegan podcast, I give you my top 10 Tips for Becoming a Brand New Vegan.  Photo by Hans Splinter | cc Flickr Be sure and stop by... Read more

    The 22 March 2018 by   Chuck Underwood
  • Concert Review: Evil Never Dies

    Concert Review: Evil Never Dies

    Judas Priest, Saxon, Black Star Riders rock Newark. by Paul J. Pelkonen The mighty Judas Priest (l.r. Richie Faulkner, Scott Travis, Rob Halford, Andy Sneap, Ia... Read more

    The 22 March 2018 by   Superconductor
  • Designer Daddy’s Ultimate Road Trip Playlist

    Designer Daddy’s Ultimate Road Trip Playlist

    Road trips were a big part of my childhood. As a military family, that meant lots visits to grandparents and cousins each summer and Christmas. Most of these... Read more

    The 22 March 2018 by   Designerdaddy