Title: Error during setup
Last modified: September 5, 2019

---

# Error during setup

 *  Resolved [soulipsyz](https://wordpress.org/support/users/soulipsyz/)
 * (@soulipsyz)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-during-setup-2/)
 * Hi, after activating the plugin I get this error:
 * Fatal error: Cannot redeclare tgmpa() (previously declared in /srv/users/bedtones/
   apps/bedtones/public/wp-content/plugins/smart-variations-images/includes/admin/
   tgm/class-tgm-plugin-activation.php:2126) in /srv/users/bedtones/apps/bedtones/
   public/wp-content/themes/kona/plugin-activation/class-tgm-plugin-activation.php
   on line 2175
 * What do you make of that?

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

 *  Plugin Author [RosendoLabs](https://wordpress.org/support/users/drosendo/)
 * (@drosendo)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-during-setup-2/#post-11904688)
 * Hi,
 * It seems that your theme is using/importing tgmpa in a inappropriate way, causing
   my plugin and any other that uses tgmpa to break.
 * My advise would be to contact the theme authors so that they properly include
   the file.
 * I could have a look to make a workaround.
 * Cheers,
    David
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-during-setup-2/#post-11906345)
 * Hi [@soulipsyz](https://wordpress.org/support/users/soulipsyz/)
 * This is typically caused by a theme author having done an incorrect search & 
   replace in the TGMPA file.
 * The simplest way to get round this, is to replace the file.
 * 1. Download the current version of the library from [http://tgmpluginactivation.com/download/](http://tgmpluginactivation.com/download/)(
   for your purposes, just click on the “Zipball” link below the form)
    2. Unzip
   the file and 3. Copy/upload (via FTP) just the `class-tgm-plugin-activation.php`
   file to the `/srv/users/bedtones/apps/bedtones/public/wp-content/themes/kona/
   plugin-activation/` directory of your website, replacing the existing class-tgm-
   plugin-activation.php file.
 * Once you’ve done that, all should be fine again.
 * All the same, please contact the Theme author and ask them to update the TGMPA
   file they include with their theme. They should download a fresh copy of TGMPA
   using the Custom TGMPA Generator, which will serve them with a customized download
   of TGMPA which will automagically have done the search & replace the correct 
   way.
    [http://tgmpluginactivation.com/download/](http://tgmpluginactivation.com/download/)
 * Hope this helps.
 *  Plugin Author [RosendoLabs](https://wordpress.org/support/users/drosendo/)
 * (@drosendo)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-during-setup-2/#post-11906907)
 * Hi [@jrf](https://wordpress.org/support/users/jrf/),
 * Thanks for the input.
 * Cheers,
    David

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

The topic ‘Error during setup’ is closed to new replies.

 * ![](https://ps.w.org/smart-variations-images/assets/icon-256x256.png?rev=2094600)
 * [Smart Variations Images & Swatches for WooCommerce](https://wordpress.org/plugins/smart-variations-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-variations-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-variations-images/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-variations-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-variations-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-variations-images/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [RosendoLabs](https://wordpress.org/support/users/drosendo/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-during-setup-2/#post-11906907)
 * Status: resolved