Categories: Wordpress

Fix WordPress Import Not Working

Fix WordPress Import Posts Not Working Issue

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

How to Fix WordPress Import Issue ?

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.

ProWebGuru

Mostly I write about technology related stuff on https://www.prowebguru.com Recently I have started making videos also. Mostly blog posts & videos are related to technology, programming and learning some new tips and tricks related to windows, wordpress, google app script, technical, programming, javascript, jquery and other coding related stuff. Youtube channel - https://www.youtube.com/user/prowebguru

Recent Posts

GPT 5.4: Powerful AI Breakthrough – 7 Game-Changing Features, Launch Date & Full Guide

GPT 5.4: The Next-Generation AI Model Transforming Reasoning, Coding, and Productivity Artificial Intelligence is evolving…

1 week ago

GPT‑5.3 Instant Explained: Faster, Smarter & Fewer Refusals

GPT-5.3 Instant is OpenAI's latest ChatGPT model update, prioritizing smoother conversations, fewer refusals, and higher…

1 week ago

Free Perplexity Pro for Airtel Customers: Unlock Advanced AI Assistance at No Cost!

Are you tired of scrolling endlessly through Google results trying to find clear, trustworthy answers?…

4 months ago

Unlocking Collaborative Coding with GitHub Copilot Spaces

In recent years, the process of software development has rapidly evolved—developers demand smarter tools and…

4 months ago

ChatGPT Go Now Free in India: Opening Doors to Advanced AI Capabilities

India has emerged as one of the fastest-growing and most significant markets in the global…

4 months ago

AgentKit by OpenAI: Redefining the Future of AI Agent Development

On October 6, 2025, OpenAI unveiled AgentKit, a unified suite of tools designed to help developers and…

5 months ago

This website uses cookies.