• Resolved Liam_Tayler

    (@liam_tayler)


    Hello,

    I have a fatal error on activation of the plugin.

    Fatal error: Cannot redeclare tgmpa() (previously declared in /home/content/15/9832015/html/wp-content/plugins/apply-online/required-plugins/class-tgm-plugin-activation.php:2126) in /home/content/15/9832015/html/wp-content/themes/physio-qt/inc/tgmpa/class-tgm-plugin-activation.php on line 2118

    This is the error I am receiving – I now have no access to the wordpress dashboard,.. is there any way to fix this?

    Thanks, I can’t wait to start using this plugin.

    Yours,

    Liam

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @liam_tayler

    This is typically caused by a theme author having done an incorrect search & replace in the TGMPA file.

    The simplest way to get round this, is to replace the file.

    1. Download the current version of the library from https://tgmpluginactivation.com/download/ (for your purposes, just click on the “Zipball” link below the form)
    2. Unzip the file and
    3. Copy/upload (via FTP) just the class-tgm-plugin-activation.php file to the /home/content/15/9832015/html/wp-content/themes/physio-qt/inc/tgmpa/ directory of your website, replacing the existing class-tgm-plugin-activation.php file.

    Once you’ve done that, all should be fine again.

    All the same, please contact the Theme author and ask them to update the TGMPA file they include with their theme. They should download a fresh copy of TGMPA using the Custom TGMPA Generator, which will serve them with a customized download of TGMPA which will automagically have done the search & replace the correct way.
    https://tgmpluginactivation.com/download/

    Hope this helps.

    Plugin Author Farhan Noor

    (@farhannoor)

    Hi,
    Really sorry for inconvenience caused. Plugin got conflict with your active theme. We have tested tgmpa library thoroughly & it seems that your active theme Physio used tgmpa library incorrectly.

    Solution: Delete apply-onlin plugin folder using FTP or using your File management utility provided by your Web Host.

    Unfortunately you cannot use our plugin with your active theme until tgma library issue get resolved.

    Talk to your theme provider & discuss this issue with them. Also submit theme’s zip on ApplyOnline plugin’s website for our analysis using contact form provided there.

    Thank you.

    Thread Starter Liam_Tayler

    (@liam_tayler)

    great, thanks.. I will get things up and running again and let you know how it goes!

    Great support service!

    Liam

    P.S.: If you use the solution I posted, you *will* be able to use this plugin with your current theme ??

    Thread Starter Liam_Tayler

    (@liam_tayler)

    Just to let you know, doing the TGMPA update worked!

    Thank you so much!

    Yours,

    Liam

    Plugin Author Farhan Noor

    (@farhannoor)

    That is great! Don’t forget to talk to your theme’s author otherwise your website may receive same fatal error with future update of the theme.

    Thank you @jrf for providing a great solution. WordPress guys are so cool.

    Best Regards.

    @liam_tayler Glad you got things working again ??

    WordPress guys are so cool.

    @farhannoor WordPress Girls/Women too….

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error on plugin activation’ is closed to new replies.