Title: Fatal Error: Maximum execution time simple_html_dom.php
Last modified: April 1, 2021

---

# Fatal Error: Maximum execution time simple_html_dom.php

 *  Resolved [paciente8159](https://wordpress.org/support/users/paciente8159/)
 * (@paciente8159)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-maximum-execution-time-simple_html_dom-php/)
 * Hi there,
    I was trying your plugin for the first time and before using it on
   a live site I installed it in a local Xampp installation. Every time I start 
   to translate a new page Translate press starts scrapping the page and it hangs
   there returning a `Fatal Error: Maximum execution time simple_html_dom.php on
   line 161`. This seems to get stuck on the `__destruct()` function and timeout
   the thread. After some research I found this [error report](https://github.com/sunra/php-simple-html-dom-parser/issues/60)
   that explaining how to work around this issue. I modified my local translatePress
   source code to add the explicit `clear` call after all the objects created with`
   TranslatePress\str_get_html` are used and can be disposed and this fixed the 
   issue. TranslatePress started to load/parse pages alot faster and error free.
   Please fix this. Thanks.
    -  This topic was modified 5 years, 2 months ago by [paciente8159](https://wordpress.org/support/users/paciente8159/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * (@alexcozmoslabs)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-maximum-execution-time-simple_html_dom-php/#post-14283341)
 * Hi,
 * Thank you for let us know about this and for your proposed solution.
    I noticed
   our development team about this and they will investigate this, coming up with
   a solution in one of the future updates.
 * Best Regards,

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error: Maximum execution time simple_html_dom.php’ is closed to
new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)
 * [performance](https://wordpress.org/support/topic-tag/performance/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexcozmoslabs/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-maximum-execution-time-simple_html_dom-php/#post-14283341)
 * Status: resolved