Title: Fatal error on specific WordPress Theme install
Last modified: February 25, 2020

---

# Fatal error on specific WordPress Theme install

 *  Resolved [tanner2272](https://wordpress.org/support/users/tanner2272/)
 * (@tanner2272)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/)
 * Hello, we *were* currently using your plugin on two different WordPress websites.
   The two sites use different Themes and different sets of plugins, but are both
   hosted on identical platforms.
 * On website (A) we went through the process of updating various plugins and no
   issue was found. On website (B) we did the same process and *boom!* the WP Admin
   area crashed to a fatal error.
 * We managed to get the Admin area back, but only by disabling your plugin. We 
   got an automated email, which stated:
 * > Fatal error: Cannot redeclare tgmpa() (previously declared in /home/palacegr/
   > public_html/wp-content/plugins/complianz-gdpr/integrations/TGM/class-tgm-plugin-
   > activation.php:2126) in /home/palacegr/public_html/wp-content/themes/nanosoft/
   > vendor/class-tgm-plugin-activation.php on line 2118 There has been a critical
   > error on your website.
 * Prior to this point, the plugin had been working fine with the theme. I believe
   we were in the process of installing an upgrade to your specific plugin.
 * I have retrospectively upgraded the theme itself, but if I activate the complianz-
   gdpr plugin, I get the same fatal error.
 * Regards,
    m.

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

 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12477578)
 * Hi [@tanner2272](https://wordpress.org/support/users/tanner2272/),
 * The tgmpa function is new to Complianz. If the function already exists, we won’t
   load the function. I guess your theme does the following;
 * It will load the same function name (which is a standard), but won’t check if
   the function already exists. In this case I think
 * tgmpa() function is loaded by Complianz
    tgmpa() function is loaded again by 
   your theme, without checking. And error.
 * I your website B uses a different theme, this is most likely the case. The best
   way is to contact theme support to fix the issue, because it will happen with
   any other plugin using the same functionality.
 * Please let me know if this sounds correct,
 * regards Aert
 *  Thread Starter [tanner2272](https://wordpress.org/support/users/tanner2272/)
 * (@tanner2272)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12478003)
 * I will send a message to the theme’s creator and see what they say.
 * Thanks
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12478168)
 * Hi [@tanner2272](https://wordpress.org/support/users/tanner2272/),
 * Could you tell me which theme? We had this before, can’t remember which theme,
   maybe it will refresh my memory:)
 * regards Aert
 *  Thread Starter [tanner2272](https://wordpress.org/support/users/tanner2272/)
 * (@tanner2272)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12478173)
 * Hi, the theme is:
 * [https://themeforest.net/item/nanosoft-wp-theme-for-it-solutions-and-services-company/22064051](https://themeforest.net/item/nanosoft-wp-theme-for-it-solutions-and-services-company/22064051)
 * m.
 *  [line98](https://wordpress.org/support/users/line98/)
 * (@line98)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12482903)
 * Hi folks,
 * I got exactly the same problem, with the following theme [http://dosislite.theme-xoda.net](http://dosislite.theme-xoda.net)
   I deactivated the plugin and my website is up and running again. I will send 
   them a message, but I thought it was good to mention I had the same problem. 
   I will give an update if I found a way to fix this problem!
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12484596)
 * Hi [@line98](https://wordpress.org/support/users/line98/),
 * Thanks for letting us know. Keep us posted:-)
 * regards Aert
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12491452)
 * Hi [@line98](https://wordpress.org/support/users/line98/) [@tanner2272](https://wordpress.org/support/users/tanner2272/),
 * We will update Complianz early next week to fix this issue.
 * regards Aert
 *  [line98](https://wordpress.org/support/users/line98/)
 * (@line98)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12502919)
 * Hi [@aahulsebos](https://wordpress.org/support/users/aahulsebos/) thank you!
 * The makers of the theme I use didn’t respond yet. I will try this afternoon if
   I can get everything up and running again with the latest version of your plugin,
   thank you and have a good day!
 * EDIT: I updated & re-activated your plugin and now everything works as it did
   before. Great job, thank you so much.
    -  This reply was modified 6 years, 3 months ago by [line98](https://wordpress.org/support/users/line98/).

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

The topic ‘Fatal error on specific WordPress Theme install’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [line98](https://wordpress.org/support/users/line98/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-on-specific-wordpress-theme-install/#post-12502919)
 * Status: resolved