Title: Error in /inc/func/plugin-activation.php
Last modified: August 31, 2016

---

# Error in /inc/func/plugin-activation.php

 *  Resolved [anphira](https://wordpress.org/support/users/anphira/)
 * (@anphira)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-incfuncplugin-activationphp/)
 * Just updated one of my sites to Fruitful 3.2.
 * And I got an error message about tgmpa() being redeclared on line 2062 of plugin-
   activation.php. I checked the file and on line 2052 there is a
 * `if ( ! function_exists( 'fruitful' ) ) {`
 * When I changed this to the more logical
 * `if ( ! function_exists( 'tgmpa' ) ) {`
 * The site started working again.

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

 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-incfuncplugin-activationphp/#post-7111726)
 * Hi [@anphira](https://wordpress.org/support/users/anphira/), I know theme authors
   have to replace the text-domain in the TGMPA class to match the theme’s if they
   to publish the theme on wp.org, so it looks like the author did a bit too careless
   search & replace in this case.
 * Your fix is correct and how the code *should* look.
 * [@fruitfulcode](https://wordpress.org/support/users/fruitfulcode/) – you may 
   want to start using the [Custom TGMPA Generator](http://tgmpluginactivation.com/download/).
   First to fix the current version and for the future to get updated versions of
   TGMPA.
    The Custom Generator will serve you with a customized download of TGMPA
   which will pass the Theme Check rules.
 *  [Fabian_Niesen](https://wordpress.org/support/users/fabian_niesen/)
 * (@fabian_niesen)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-incfuncplugin-activationphp/#post-7111816)
 * The same issue here. Thanks for the solution.
 *  Theme Author [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * (@fruitfulcode)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-incfuncplugin-activationphp/#post-7111837)
 * Hello,
 * Thank you for letting us know about this problem. Shortly our developers eliminate
   this bug
 * Regards

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

The topic ‘Error in /inc/func/plugin-activation.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/fruitful/3.8.2/screenshot.png)
 * Fruitful
 * [Support Threads](https://wordpress.org/support/theme/fruitful/)
 * [Active Topics](https://wordpress.org/support/theme/fruitful/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/fruitful/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/fruitful/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Fruitful Code](https://wordpress.org/support/users/fruitfulcode/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-incfuncplugin-activationphp/#post-7111837)
 * Status: resolved