Title: SimpleHtmlDom.php error line 176
Last modified: May 25, 2021

---

# SimpleHtmlDom.php error line 176

 *  Resolved [ngreeves](https://wordpress.org/support/users/ngreeves/)
 * (@ngreeves)
 * [5 years ago](https://wordpress.org/support/topic/simplehtmldom-php-error-line-176/)
 * I used Simply Static successfully once when this site was hosted on macOS. It
   has since moved to linux hosting but it otherwise unchanged and now I cannot 
   get the plugin to export the site.
    I get an error after 20 minutes Error: (1)
   Uncaught RuntimeException: Not valid HTML fragment… (I was unable to copy the
   red text) The diagnostics are all OK.
 * How can I avoid this error?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsimplehtmldom-php-error-line-176%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [5 years ago](https://wordpress.org/support/topic/simplehtmldom-php-error-line-176/#post-14485678)
 * Hey [@ngreeves](https://wordpress.org/support/users/ngreeves/),
 * you have invalid HTML on your page which needs to be removed before you can export
   successfully.
 * Check your page with: [https://validator.w3.org/](https://validator.w3.org/) 
   to find the problem, remove the invalid markup (maybe coming from a plugin), 
   then you can generate your static site.
 * Best regards,
    Patrick
 *  Thread Starter [ngreeves](https://wordpress.org/support/users/ngreeves/)
 * (@ngreeves)
 * [5 years ago](https://wordpress.org/support/topic/simplehtmldom-php-error-line-176/#post-14485703)
 * Thanks for the reply.
    How can I tell which page has caused the problem? I have
   >2400.
 * Best regards
    Nick
 *  Plugin Author [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [5 years ago](https://wordpress.org/support/topic/simplehtmldom-php-error-line-176/#post-14485720)
 * Hey [@ngreeves](https://wordpress.org/support/users/ngreeves/),
 * just use the domain, it’s mostly not page-specific and instead something you 
   have on all of your pages.
 * Check [https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.chemtube3d.com%2F](https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.chemtube3d.com%2F)
 * Seems like an error within your menu/search bar.
 * Best regards,
    Patrick

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

The topic ‘SimpleHtmlDom.php error line 176’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/simplehtmldom-php-error-line-176/#post-14485720)
 * Status: resolved