Title: Export Throws a DOMDocument Error
Last modified: August 22, 2016

---

# Export Throws a DOMDocument Error

 *  Resolved [perezbox](https://wordpress.org/support/users/perezbox/)
 * (@perezbox)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/export-throws-a-domdocument-error/)
 * I’ve been trying to run the export but I keep getting a WSOD.. I went through
   my error logs and see this error:
 * [Sun Nov 30 04:02:16 2014] [error] [client 72.14.176.225] PHP Fatal error: Class‘
   DOMDocument’ not found in /var/www/html/[domain name]/wp-content/plugins/ghost/
   lib/html-to-markdown/HTML-To-Markdown.php on line 79, referer: [http://[my](http://[my)
   domain].com/wp-admin/tools.php?page=ghost
 * Would you be able to offer any insights into how to get this working?
 * Tony
 * [https://wordpress.org/plugins/ghost/](https://wordpress.org/plugins/ghost/)

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

 *  Plugin Contributor [javorszky](https://wordpress.org/support/users/javorszky/)
 * (@javorszky)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/export-throws-a-domdocument-error/#post-5529970)
 * Hiya perezbox,
 * DOMDocument is part of PHP, it’s an inbuilt class. See [http://php.net/manual/en/class.domdocument.php](http://php.net/manual/en/class.domdocument.php).
   What version of PHP are you running, and what modifications have you made to 
   that that would stop PHP from knowing about DOMDocument?
 * Gabor
 *  Thread Starter [perezbox](https://wordpress.org/support/users/perezbox/)
 * (@perezbox)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/export-throws-a-domdocument-error/#post-5529988)
 * Hey [@javorszky](https://wordpress.org/support/users/javorszky/)
 * Ah, thanks for pointing me int he right direction.
 * I run very clean installs with very few dependencies configured, only apply them
   as I need them. The DOMDocument class seems to be XML, and I wasn’t running php-
   xml which included:
 * /usr/lib64/php/modules/dom.so
    /usr/lib64/php/modules/wddx.so /usr/lib64/php/
   modules/xmlreader.so /usr/lib64/php/modules/xmlwriter.so /usr/lib64/php/modules/
   xsl.so
 * Once installed, I restarted Apache and like magic, it worked.. By chance am I
   able to contribute this troubleshooting step to your documentation under troubleshooting
   WordPress exports? I imagine, and hope, I’m not going to be the only one that
   made this bone head move.. 🙂
 * Thanks again for the speedy response..
 * Tony
 * Tony
 *  Plugin Contributor [javorszky](https://wordpress.org/support/users/javorszky/)
 * (@javorszky)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/export-throws-a-domdocument-error/#post-5529989)
 * Heya [@perezbox](https://wordpress.org/support/users/perezbox/),
 * Awesome, glad it got resolved. 🙂 I’ll add this to the troubleshooting docs when
   next version goes out.
 * Gabor

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

The topic ‘Export Throws a DOMDocument Error’ is closed to new replies.

 * ![](https://ps.w.org/ghost/assets/icon-256x256.png?rev=2714286)
 * [Ghost](https://wordpress.org/plugins/ghost/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ghost/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ghost/)
 * [Active Topics](https://wordpress.org/support/plugin/ghost/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ghost/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ghost/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [javorszky](https://wordpress.org/support/users/javorszky/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/export-throws-a-domdocument-error/#post-5529989)
 * Status: resolved