Title: Error while generating static html
Last modified: October 17, 2023

---

# Error while generating static html

 *  Resolved [Tejas Hapani](https://wordpress.org/support/users/tejashapani-1/)
 * (@tejashapani-1)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-while-generating-static-html/)
 * Hello,
 * I am getting below error while generating static html:
 * Error: (1) Uncaught TypeError: Argument 1 passed to voku\helper\HtmlDomParser::
   loadHtml() must be of the type string, bool given, called in /chroot/home/wp-
   content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.
   php on line 228 and defined in /chroot/home/wp-content/plugins/simply-static/
   vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php:870
 * I tried resetting plugin data option but same error occurred.
 * Can you please help?
 * Thanks
   Tejas

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

 *  Plugin Author [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-while-generating-static-html/#post-17146698)
 * Hey [@tejashapani-1](https://wordpress.org/support/users/tejashapani-1/),
 * that happens if Simply Static finds invalid HTML that the crawler can’t parse.
 * That usually happens with other plugins (look for things with a shortcode/block
   in particular).
 * The traditional debugging would work fine here to isolate the problem:
    1. Deactivate all plugins and run an export
    2. Step by step re-activate the plugins to figure out which one causes the problem
    3. Find an alternative for that particular plugin
 * Cheers,
   Patrick
 *  Thread Starter [Tejas Hapani](https://wordpress.org/support/users/tejashapani-1/)
 * (@tejashapani-1)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-while-generating-static-html/#post-17190339)
 * Hi Patrick,
 * I have disabled all the plugins and also set the theme to Twenty Twenty-Four
 * Then i tried to generate static html, but still getting same error
 * [2023-11-10 01:02:29] Setting up
   [2023-11-10 01:02:29] Fetched 71 of 98 pages/
   files
 * [2023-11-10 01:02:32] Error: (1) Uncaught TypeError: Argument 1 passed to voku\
   helper\HtmlDomParser::loadHtml() must be of the type string, bool given, called
   in /chroot/home/mysite/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/
   src/voku/helper/HtmlDomParser.php on line 228 and defined in /chroot/home/mysite/
   wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/
   HtmlDomParser.php:870 Stack trace: #0 /chroot/home/mysite/wp-content/plugins/
   simply-static/vendor/voku/simple_html_dom/src/voku/helper/HtmlDomParser.php(228):
   voku\helper\HtmlDomParser->loadHtml() #1 /chroot/home/mysite/wp-content/plugins/
   simply-static/src/class-ss-url-extractor.php(337): voku\helper\HtmlDomParser::
   __callStatic() #2 /chroot/home/mysite/wp-content/plugins/simply-static/src/class-
   ss-url-extractor.php(179): Simply_Static\Url_Extractor->extract_and_replace_urls_in
   in **/chroot/home/mysite/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/
   src/voku/helper/HtmlDomParser.php** on line **870**

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

The topic ‘Error while generating static html’ 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: [Tejas Hapani](https://wordpress.org/support/users/tejashapani-1/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-while-generating-static-html/#post-17190339)
 * Status: resolved