Title: plugin FATAL ERROR
Last modified: November 12, 2016

---

# plugin FATAL ERROR

 *  Resolved [developer](https://wordpress.org/support/users/yammy/)
 * (@yammy)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-fatal-error-9/)
 * Installed last version plugin today – CANT ACTIVATE IT – BREAKS WORDPRESS !
 *  Fatal error: Cannot redeclare tgmpa() (previously declared in …/class-tgm-plugin-
   activation.php:2126) in …/class-tgm-plugin-activation.php on line 1927

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

 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-fatal-error-9/#post-8426067)
 * This is not an issue with the WooEnhancer plugin, but with the theme you are 
   using .
 * They have a typo (or rather, search and replace error) in their code on line 
   1927.
 * That line should read:
    `if ( ! function_exists( 'tgmpa' ) ) {`
 * As they incorrectly changed it, the function is being redefined causing that 
   error.
 * If you replace that one line in the `class-tgm-plugin-activation.php` file within
   your theme with the line above, WooEnhancer and your theme will play nice together
   😉
 * Please also ask the theme author to fix this as this may also cause issues for
   other users of the theme.
    You can tell the theme developers that if they download
   a fresh copy of TGMPA using the [Custom TGMPA Generator](http://tgmpluginactivation.com/download/),
   it will serve them with a customized download of TGMPA which will automagically
   have done the search & replace for them in the correct way. [http://tgmpluginactivation.com/download/](http://tgmpluginactivation.com/download/)
 * Hope this helps.
 * Smile,
    Juliette
 *  Plugin Author [PedroMiguras](https://wordpress.org/support/users/miguras/)
 * (@miguras)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-fatal-error-9/#post-8444928)
 * Thanks Juliette for provide help to users of my plugin.
 * Greetings!

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

The topic ‘plugin FATAL ERROR’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wooenhancer_e2525c.svg)
 * [WooCommerce Customizer - WooEnhancer](https://wordpress.org/plugins/wooenhancer/)
 * [Support Threads](https://wordpress.org/support/plugin/wooenhancer/)
 * [Active Topics](https://wordpress.org/support/plugin/wooenhancer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wooenhancer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wooenhancer/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [PedroMiguras](https://wordpress.org/support/users/miguras/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-fatal-error-9/#post-8444928)
 * Status: resolved