Title: Non-coder Needs Help with Fatal Error
Last modified: August 30, 2016

---

# Non-coder Needs Help with Fatal Error

 *  [KurtF](https://wordpress.org/support/users/kurtf/)
 * (@kurtf)
 * [11 years ago](https://wordpress.org/support/topic/non-coder-needs-help-with-fatal-error/)
 * I’m getting this error message when I try to activate this plug-in:
 * Fatal error: Cannot redeclare class Mobile_Detect in /home/content/77/3856777/
   html/wp-content/plugins/wp-mobile-detect/mobile-detect.php on line 29
 * My site: [http://mymoneycounselor.com](http://mymoneycounselor.com)
 * A little help please? Thanks.
 * [https://wordpress.org/plugins/wp-mobile-detect/](https://wordpress.org/plugins/wp-mobile-detect/)

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

 *  [princessfiona6](https://wordpress.org/support/users/princessfiona6/)
 * (@princessfiona6)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/non-coder-needs-help-with-fatal-error/#post-6292514)
 * I just install the plugin and got the same fatal error when try to activate it,
   can anyone help please?
 * I’m using WP 4.2.3.
 *  [princessfiona6](https://wordpress.org/support/users/princessfiona6/)
 * (@princessfiona6)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/non-coder-needs-help-with-fatal-error/#post-6292515)
 * [@kurtf](https://wordpress.org/support/users/kurtf/),
 * I think I found a way to fix this.
 * Edit **wp-mobile-detect.php** in /wp-content/plugins/wp-mobile-detect/
 * At the top, you change the code from this
 * `require_once('mobile-detect.php');`
 * into this
 *     ```
       if(!class_exists("Mobile_Detect")){
       	require_once('mobile-detect.php');
       }
       ```
   
 * Save the file and re-upload to the same directory and overwrite it.
 * It got me activated successfully, but I didn’t test its functions yet.
 *  [dataworksed](https://wordpress.org/support/users/dataworksed/)
 * (@dataworksed)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/non-coder-needs-help-with-fatal-error/#post-6292519)
 * [@princessfiona6](https://wordpress.org/support/users/princessfiona6/) [@kurtf](https://wordpress.org/support/users/kurtf/)
   this worked for me! thank you
 *  [Jake Reimer](https://wordpress.org/support/users/jake-reimer/)
 * (@jake-reimer)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/non-coder-needs-help-with-fatal-error/#post-6292528)
 * Worked for me as well! Thank you.

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

The topic ‘Non-coder Needs Help with Fatal Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mobile-detect.svg)
 * [WP Mobile Detect](https://wordpress.org/plugins/wp-mobile-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mobile-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mobile-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mobile-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mobile-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mobile-detect/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 4 replies
 * 4 participants
 * Last reply from: [Jake Reimer](https://wordpress.org/support/users/jake-reimer/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/non-coder-needs-help-with-fatal-error/#post-6292528)
 * Status: not resolved