Title: Can&#8217;t Make Static File
Last modified: December 26, 2018

---

# Can’t Make Static File

 *  Resolved [aejaz](https://wordpress.org/support/users/aejaz/)
 * (@aejaz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/)
 * Hello,
 * I’m trying to generate a static version of my website but when I click on “start
   static site export” button I’m getting below error.
 * I’m using latest version of plugin
 * An error has occurred, but let’s fix it!
    Everyone’s WordPress hosting environment
   and configuration is unique, with different plugins, themes, PHP versions, to
   name a few. Whilst the plugin does its best to support all environments, sometimes
   you’ll encounter a new issue. Sometimes we can adjust the settings in the plugin
   to overcome an issue, other times, it will require a bugfix and a new release
   of the plugin (usually a quick process).
 * Troubleshooting:
    Switch to the Logs tab to look for obvious errors Switch to
   the Help tab for links that will help solve your issue
 * pls look into the issue
 * Regards
    Aejaz

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

 *  [daliboratomia](https://wordpress.org/support/users/daliboratomia/)
 * (@daliboratomia)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11027178)
 * Same problem.
    From error logs:
 *     ```
       PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/HTMLProcessor.php:23
       Stack trace:
       #0 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(341): HTMLProcessor->processHTML(Object(GuzzleHttp\\Psr7\\Stream), 'http://domain...')
       #1 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(258): SiteCrawler->loadFileForProcessing()
       #2 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(168): SiteCrawler->crawlABitMore()
       #3 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(44): SiteCrawler->crawl_site()
       #4 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/SiteCrawler.php(472): SiteCrawler->__construct()
       #5 /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/Dispatcher.php(11): requir in /var/www/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/HTMLProcessor.php on line 23, referer: http://domain.com/wp-admin/admin.php?page=wp2static
       ```
   
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11027434)
 * Hi to both of you,
 * OK, great news: this is a fairly easy fix. The plugin uses a part of PHP, called
   the DOMDocument, to help parse HTML files and rewrite links.
 * It’s usually available on most hosting providers, but when it’s not, you have
   some options to install it, which should solve your error.
 * Please try the recommended solution here:
 * [https://stackoverflow.com/a/14395414/1668057](https://stackoverflow.com/a/14395414/1668057)
 * If that’s not working, please let me know your hosting company or how you are
   running your WordPress server, and I can point you towards other options.
 * Cheers,
 * Leon
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11027580)
 * Hi Aejaz,
 * Please let me know what your log files say. Specifically, the Export Log.
 * If preferred, you can email them to me:
 * [leon@wp2static.com](https://wordpress.org/support/topic/cant-make-static-file/leon@wp2static.com?output_format=md)
 * There is also this list of troubleshooting steps if you want to try and solve
   it yourself:
 * [https://forum.wp2static.com/-33/how-to-troubleshoot-a-failing-export](https://forum.wp2static.com/-33/how-to-troubleshoot-a-failing-export)
 * Cheers,
 * Leon
 * Cheers,
 * Leon
 *  Thread Starter [aejaz](https://wordpress.org/support/users/aejaz/)
 * (@aejaz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11032290)
 * Hello leon,
 * My export file
 * STARTING EXPORT: 2018-12-28 11:31:00
    STARTING EXPORT: PHP VERSION 7.1.25 STARTING
   EXPORT: OS VERSION Linux grh19.myukcloud.com 3.10.0-714.10.2.lve1.5.17.el7.x86_64#
   1 SMP Mon Apr 30 13:06:32 EDT 2018 x86_64 STARTING EXPORT: WP VERSION 4.9.8 STARTING
   EXPORT: WP URL [http://redmountaintech.imco.sa](http://redmountaintech.imco.sa)
   STARTING EXPORT: WP SITEURL [http://redmountaintech.imco.sa](http://redmountaintech.imco.sa)
   STARTING EXPORT: WP HOME [http://redmountaintech.imco.sa](http://redmountaintech.imco.sa)
   STARTING EXPORT: WP ADDRESS [http://redmountaintech.imco.sa](http://redmountaintech.imco.sa)
   STARTING EXPORT: PLUGIN VERSION 6.1 STARTING EXPORT: VIA WP-CLI? STARTING EXPORT:
   STATIC EXPORT URL [http://example.com/](http://example.com/)
 * I’m trying to export zip file.
 * also, I checked with my hosting provider he said DOM Extension is already installed.
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11032300)
 * Hi aejaz,
 * Please share with me what’s in your server logs (webserver or PHP logs) at the
   time your export fails.
 * Your hosting provider may be able to help show where to find these.
 * As it is, the plugin isn’t showing a specific error, so we need to look lower
   down in the system.
 * Cheers,
 * Leon
 *  Thread Starter [aejaz](https://wordpress.org/support/users/aejaz/)
 * (@aejaz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11034947)
 * Hi,
 * I checked there is not a single error in the server.
 * I will give my website WordPress credentials can you pls check it out for me.
   if possible can you pls generate a zip file of the static website.
 * [http://redmountaintech.imco.sa](http://redmountaintech.imco.sa)
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11038051)
 * Hi [@aejaz](https://wordpress.org/support/users/aejaz/),
 * OK, please message me directly in the Slack group:
 * [https://join.slack.com/t/wp2static/shared_invite/enQtNDQ4MDM4MjkwNjEwLTVmN2I2MmU4ODI2MWRkNzM4ZGU3YWU4ZGVhMzgwZTc1MDE2OGNmYTFhOGMwM2U0ZTVlYTljYmM2Yjk2ODJlOTk](https://join.slack.com/t/wp2static/shared_invite/enQtNDQ4MDM4MjkwNjEwLTVmN2I2MmU4ODI2MWRkNzM4ZGU3YWU4ZGVhMzgwZTc1MDE2OGNmYTFhOGMwM2U0ZTVlYTljYmM2Yjk2ODJlOTk)
 * Cheers,
 * Leon
 *  [grahamsmith83](https://wordpress.org/support/users/grahamsmith83/)
 * (@grahamsmith83)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11041767)
 * Hi Leon
 * I’m getting the same error
 * Have tried the stackoverflow fix of installing php-xml, and getting no errors
   on server logs
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11042146)
 * Hi Graham,
 * I saw you joined the Slack group, it may be easier to do a bit of back and forth
   there, to diagnose the cause.
 * There is also a 6.1.1 release just out today, that could possibly help with things.
 * Cheers,
 * Leon
 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11055744)
 * For any in this thread still experiencing issues, please update to today’s release(
   6.2), which solves a few issues. If any persist, please let me know with a new
   support request.
 * Cheers,
 * Leon

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

The topic ‘Can’t Make Static File’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/static-html-output-plugin_cce3eb.
   svg)
 * [WP2Static](https://wordpress.org/plugins/static-html-output-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/static-html-output-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/static-html-output-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/static-html-output-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/static-html-output-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/static-html-output-plugin/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/cant-make-static-file/#post-11055744)
 * Status: resolved