Title: Fatal Error &#8211; Theme Activation
Last modified: March 26, 2017

---

# Fatal Error – Theme Activation

 *  [moniquebentham](https://wordpress.org/support/users/moniquebentham/)
 * (@moniquebentham)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/)
 * Hi,
    I installed a new theme which I decided I was not going to use. I deleted
   the plugins that came with it and changed my theme. After activating the theme
   I received this message:
 * Fatal error: Cannot redeclare tgmpa() (previously declared in /home/livetgej/
   public_html/wp-content/plugins/iiStores/modules/class-tgm-plugin-activation.php:
   965) in /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions/plugin-
   activation.php on line 1045
 * Can someone please help me fix this issue as I am no savvy at all with c-panel
   and code!!

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-7357502)
 * your “iiStores” plugin seems to be the error.
 * Is this the plugin you deleted?
 * If not, try deleting/uninstalling/renaming the folder of this plugin using, [FTP ](http://codex.wordpress.org/FTP_Clients),
   or your web-host’s cPanel or whatever file management application your host provides(
   no Dashboard access required).
 * If you have already deleted it and still getting this error, then try [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by [FTP](http://codex.wordpress.org/FTP_Clients). Sometimes, an apparently inactive
   plugin can still cause problems.
 *  Thread Starter [moniquebentham](https://wordpress.org/support/users/moniquebentham/)
 * (@moniquebentham)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-7357538)
 * I purchased iiStores Plugin a few days ago and I did not delete it so I do no
   know why it is the problem.
    I will do that and see if it fixes the problem Thank
   You
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-7357539)
 * Hi Monique,
 * Both the iiStores plugin as well as the MTS Gridblog theme use an external library
   called TGMPA. As both are commercial, I cannot tell which versions they use, 
   other than that at least one of them will be a (very) out-of-date version and
   they really should upgrade to the latest version. The out-of-date version is 
   causing the issue.
 * In the mean time, I’ll try and help you get things up & working again.
    You can
   download the latest version of TGMPA yourself here: [http://tgmpluginactivation.com/download/](http://tgmpluginactivation.com/download/)–(
   hint: click on the ‘zipfile’ link underneath the form) Unzip the file after the
   download has finished and just take the class-tgm-plugin-activation.php file 
   and replace the existing one in the theme (via FTP) which you can find here: `/
   wp-content/themes/mts_gridblog/functions/plugin-activation.php`.
 * And if you want to be sure that the plugin also uses the most up-to-date version,
   you can safely replace the version in the plugin as well ( `wp-content/plugins/
   iiStores/modules/class-tgm-plugin-activation.php` )
 * Once you’ve done that, all should be fine again.
 * Please *do* inform both the theme as well as the plugin author of this and ask
   them to upgrade the version of TGMPA they include in their product.
 * Hope this helps.
 * Smile,
    Juliette
 *  Thread Starter [moniquebentham](https://wordpress.org/support/users/moniquebentham/)
 * (@moniquebentham)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-7357540)
 * I did what you said to do and I am now receiving this message:
    Warning: include_once(
   functions/plugin-activation.php): failed to open stream: No such file or directory
   in /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php on
   line 299
 * Warning: include_once(): Failed opening ‘functions/plugin-activation.php’ for
   inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/livetgej/
   public_html/wp-content/themes/mts_gridblog/functions.php on line 299
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php:299)
   in /home/livetgej/public_html/wp-login.php on line 390
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php:299)
   in /home/livetgej/public_html/wp-login.php on line 403
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php:299)
   in /home/livetgej/public_html/wp-includes/pluggable.php on line 898
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php:299)
   in /home/livetgej/public_html/wp-includes/pluggable.php on line 899
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php:299)
   in /home/livetgej/public_html/wp-includes/pluggable.php on line 900
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/livetgej/public_html/wp-content/themes/mts_gridblog/functions.php:299)
   in /home/livetgej/public_html/wp-includes/pluggable.php on line 1171
 * Should I just delete both the plugin and the theme from my file directory?
 *  Thread Starter [moniquebentham](https://wordpress.org/support/users/moniquebentham/)
 * (@moniquebentham)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-7357541)
 * All fixed!
    I just had to rename the file! Thank You
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [10 years ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-7357542)
 * Ah yes, I hadn’t noticed the theme author had changed the name of the file. Glad
   to hear it’s fixed now.
 *  [paraima](https://wordpress.org/support/users/paraima/)
 * (@paraima)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-8956851)
 * Hello
    What should I do with it Fatal error: Cannot redeclare tgmpa() (previously
   declared in /home/amortgageinsuran/public_html/wp-content/plugins/contact-form-
   7-designer/class-tgm-plugin-activation.php:1041) in /home/amortgageinsuran/public_html/
   wp-content/themes/schema/functions/plugin-activation.php on line 1045 Everytime
   I try to may help me please
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-8956871)
 * [@paraima](https://wordpress.org/support/users/paraima/),
 * If you noticed it’s about 11 months since the OP replied.
 * If the troubleshooting already posted made no difference for you, then, as per
   the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post), 
   please [post your own topic](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform).
 * I’m closing this topic

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

The topic ‘Fatal Error – Theme Activation’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-theme-activation/#post-8956871)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
