• 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

    (@t-p)

    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 , 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 by FTP. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter moniquebentham

    (@moniquebentham)

    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

    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: https://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

    (@moniquebentham)

    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

    (@moniquebentham)

    All fixed!
    I just had to rename the file!
    Thank You

    Ah yes, I hadn’t noticed the theme author had changed the name of the file. Glad to hear it’s fixed now.

    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

    (@t-p)

    @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, please post your own topic.

    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.