Title: DOMDocument error when generating static site
Last modified: August 31, 2016

---

# DOMDocument error when generating static site

 *  Resolved [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/domdocument-error-when-generating-static-site/)
 * I get the following error message when I try to generate my static site:
 * > Error: (1) Class ‘DOMDocument’ not found in /var/www/html/styleguide/wp-content/
   > plugins/simply-static/includes/class-simply-static-url-extractor.php on line
   > 132
 * The file class-simply-static-url-extractor.php is present and executable in the
   plugin folder. I don’t know how to debug this.
 * [https://wordpress.org/plugins/simply-static/](https://wordpress.org/plugins/simply-static/)

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

 *  Thread Starter [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/domdocument-error-when-generating-static-site/#post-7387967)
 * I see that this plugin requires a php extension ‘mstring’:
    [https://wordpress.org/support/topic/class-simply-static-url-extractorphp-on-line-140?replies=3](https://wordpress.org/support/topic/class-simply-static-url-extractorphp-on-line-140?replies=3)
 * My machine did not have the mstring, so I installed it with yum.. restarted Apache..
   but no change.
 * I confirmed that mstring is running with phpinfo. Now what?
 *  [Scott at Code of Conduct](https://wordpress.org/support/users/codeofconduct/)
 * (@codeofconduct)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/domdocument-error-when-generating-static-site/#post-7388135)
 * Hi photocurio,
 * What version of PHP are you running? Do you have the dom extension installed?
 * Best,
    Scott

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

The topic ‘DOMDocument error when generating static site’ is closed to new replies.

 * ![](https://ps.w.org/simply-static/assets/icon-256x256.png?rev=2443263)
 * [Simply Static - The Static Site Generator](https://wordpress.org/plugins/simply-static/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-static/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-static/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-static/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-static/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-static/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Scott at Code of Conduct](https://wordpress.org/support/users/codeofconduct/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/domdocument-error-when-generating-static-site/#post-7388135)
 * Status: resolved