Title: Fatal error: class-tgm-plugin-activation.php
Last modified: August 30, 2016

---

# Fatal error: class-tgm-plugin-activation.php

 *  Resolved [harrynieto](https://wordpress.org/support/users/harrynieto/)
 * (@harrynieto)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-class-tgm-plugin-activationphp/)
 * I am getting this error message this morning. Everything has been working fine
   for last 2 weeks so thought this might be a plugin update issue.
 * Fatal error: Cannot redeclare tgmpa() (previously declared in /home/bluejayband/
   public_html/wp-content/plugins/maxgalleria/libs/TGMPA-TGM-Plugin-Activation/class-
   tgm-plugin-activation.php:1927) in /home/bluejayband/public_html/wp-content/themes/
   zerif-lite/class-tgm-plugin-activation.php on line 1927
 * Thoughts? Resolutions? Thanks
 * H
 * [https://wordpress.org/plugins/maxgalleria/](https://wordpress.org/plugins/maxgalleria/)

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

 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-class-tgm-plugin-activationphp/#post-6650866)
 * Harry,
 * Some one else had this issue a few weeks ago. We included a setting that you 
   can add to your wp-config.php file that will turn of the use of the TGMPA library:
 *     ```
       define('TGMPA_OFF', true);
       ```
   
 * Put this before the line that says “That’s all, stop editing! Happy blogging”.
   Then you should be able to activate Maxgalleria.
 * Alan
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-class-tgm-plugin-activationphp/#post-6650928)
 * [@harrynieto](https://wordpress.org/support/users/harrynieto/) This is not an
   issue with the MaxGalleria plugin, but with the theme you are using ‘Zerif Lite’.
 * They have a typo (or rather, search and replace error) in their code:
    [https://themes.trac.wordpress.org/browser/zerif-lite/1.8.2.4/class-tgm-plugin-activation.php#L1917](https://themes.trac.wordpress.org/browser/zerif-lite/1.8.2.4/class-tgm-plugin-activation.php#L1917)
 * That line should read:
    `if ( ! function_exists( 'tgmpa' ) ) {`
 * As they incorrectly changed it, the function is being redefined causing that 
   error.
 * Please ask the theme author [@codeinwp](https://wordpress.org/support/users/codeinwp/)
   to fix this.
 * Hope this helps.
 * Smile,
    Juliette
 *  Thread Starter [harrynieto](https://wordpress.org/support/users/harrynieto/)
 * (@harrynieto)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-class-tgm-plugin-activationphp/#post-6650931)
 * Thank you Alan and Juliette, appreciate the information. I will look into both
   these options. Have a great day.
 * H

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

The topic ‘Fatal error: class-tgm-plugin-activation.php’ is closed to new replies.

 * ![](https://ps.w.org/maxgalleria/assets/icon-128x128.jpg?rev=1225417)
 * [MaxGalleria](https://wordpress.org/plugins/maxgalleria/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxgalleria/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxgalleria/)
 * [Active Topics](https://wordpress.org/support/plugin/maxgalleria/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxgalleria/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxgalleria/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [harrynieto](https://wordpress.org/support/users/harrynieto/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-class-tgm-plugin-activationphp/#post-6650931)
 * Status: resolved