• Resolved tanner2272

    (@tanner2272)


    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

    (@aahulsebos)

    Hi @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

    (@tanner2272)

    I will send a message to the theme’s creator and see what they say.

    Thanks

    Plugin Author Aert

    (@aahulsebos)

    Hi @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

    (@tanner2272)

    Hi folks,

    I got exactly the same problem, with the following theme 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

    (@aahulsebos)

    Hi @line98,

    Thanks for letting us know. Keep us posted:-)

    regards Aert

    Plugin Author Aert

    (@aahulsebos)

    Hi @line98 @tanner2272,

    We will update Complianz early next week to fix this issue.

    regards Aert

    Hi @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.
Viewing 8 replies - 1 through 8 (of 8 total)

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