Title: fatal error when importing XML: Class &#039;DOMDocument&#039;
Last modified: August 20, 2016

---

# fatal error when importing XML: Class 'DOMDocument'

 *  [noclueatall](https://wordpress.org/support/users/noclueatall/)
 * (@noclueatall)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-importing-xml-class-domdocument/)
 * Hello there,
 * I wanted to move my wordpresssite – therefore I’ve exported my wordpressdata.
   When trying to import them – the following error occurs:
 * fatal error: Class ‘DOMDocument’ not found in /var/www/wordpress/wp-content/plugins/
   wordpress-importer/parsers.php on line 61
 * Does anyone know how to solve this problem?
 * I am happy to give more infos if required – unfortunately I don’t know where 
   to start.
 * Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-when-importing-xml-class-domdocument/#post-3624983)
 * Ask your host if the php-xml package is installed on your server.
 *  [Petaris](https://wordpress.org/support/users/petaris/)
 * (@petaris)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-importing-xml-class-domdocument/#post-3625088)
 * keesiemeijer,
 * Thank you! This one got me too!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘fatal error when importing XML: Class 'DOMDocument'’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Petaris](https://wordpress.org/support/users/petaris/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-importing-xml-class-domdocument/#post-3625088)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
