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 :

  • Airbus A330-200, Thomas Cook Airlines

    Airbus A330-200, Thomas Cook Airlines

    @ San Francisco International Airport, CA October 2018 Starting in May 2017, Thomas Cook began operating two flights per week between SFO and Manchester, UK... Read more

    The 09 December 2018 by   Htam
    PHOTOGRAPHY, SOCIETY
  • Caroling Party

    Caroling Party

    Last night we hosted our fourth annual caroling party. I'm not a big Christmas gift-giving person, so our gift to everyone is doughnuts, hot chocolate, hot... Read more

    The 09 December 2018 by   Sherwoods
    FAMILY, PARENTING
  • Struggling to Afford Insulin

    Struggling Afford Insulin

    People who need insulin for their type 1 or type 2 diabetes are skimping on the shots because the drug has become so expensive. A study this week in the... Read more

    The 09 December 2018 by   Dietdoctor
    DIET & WEIGHT, HEALTH, HEALTHY LIVING, MEDICINE
  • 8 Guiding Principles For Pursuing A Winning Venture

    Guiding Principles Pursuing Winning Venture

    Every entrepreneur has an idea for transforming a market with innovative new technology, or transforming society with a new process. Read more

    The 09 December 2018 by   Martin Zwilling
    BUSINESS, CAREER
  • Nutrition and Your Doctor

    Nutrition Your Doctor

    There are certain things that doctors are great at. How to prescribe medications? Yes. How to do surgery? Yes. Nutrition and weight loss? No, definitely not. Yo... Read more

    The 09 December 2018 by   Dietdoctor
    DIET & WEIGHT, HEALTH, HEALTHY LIVING, MEDICINE
  • Sunday 9th December: Annie Chinery

    Sunday December: Annie Chinery

    I'd like to begin this blogpost by saying that I do love my mother-in-law very much. My own mother died shortly before my marriage, and Ma Walker did exactly th... Read more

    The 09 December 2018 by   Kirsty Stonell Walker
    CULTURE
  • Indoor Air Pollution: Are You Protected?

    Most of us think of big cities and smog clouds when contemplating air pollution. However, indoor air pollution can be just as prevalent and dangerous, if not... Read more

    The 09 December 2018 by   Meet Rv

Magazines