• Resolved perezbox

    (@perezbox)


    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 domain].com/wp-admin/tools.php?page=ghost

    Would you be able to offer any insights into how to get this working?

    Tony

    https://ww.wp.xz.cn/plugins/ghost/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor javorszky

    (@javorszky)

    Hiya perezbox,

    DOMDocument is part of PHP, it’s an inbuilt class. See 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

    (@perezbox)

    Hey @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

    (@javorszky)

    Heya @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.