Title: Fatal error: Cannot redeclare function file_get_html
Last modified: August 20, 2016

---

# Fatal error: Cannot redeclare function file_get_html

 *  Resolved [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function-file_get_html/)
 * After upgrading to 1.4.7 I discovered the following error when running Postie
   manually using the “Run Postie Manually” button in the config panel:
 * `Fatal error: Cannot redeclare function file_get_html in [...]wp-content/plugins/
   postie/simple_html_dom.php`
 * Another plugin (in my case, LightBox Plus) was already loading the Simple HTML
   DOM functions and classes. So, to get Postie working again I changed the following
   line in `get_mail.php` as follows:
 * `if(!function_exists(file_get_html)) { require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR.'
   simple_html_dom.php'); }`
 * [http://wordpress.org/extend/plugins/postie/](http://wordpress.org/extend/plugins/postie/)

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

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function-file_get_html/#post-3253336)
 * Thanks for the bug report and fix.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function-file_get_html/#post-3253337)
 * Fixed in 1.4.9
 *  Thread Starter [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function-file_get_html/#post-3253338)
 * Excellent! Thank you very much. 🙂

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

The topic ‘Fatal error: Cannot redeclare function file_get_html’ is closed to new
replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-function-file_get_html/#post-3253338)
 * Status: resolved