• Resolved soulipsyz

    (@soulipsyz)


    Hi, after activating the plugin I get this error:

    Fatal error: Cannot redeclare tgmpa() (previously declared in /srv/users/bedtones/apps/bedtones/public/wp-content/plugins/smart-variations-images/includes/admin/tgm/class-tgm-plugin-activation.php:2126) in /srv/users/bedtones/apps/bedtones/public/wp-content/themes/kona/plugin-activation/class-tgm-plugin-activation.php on line 2175

    What do you make of that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Rosendo

    (@drosendo)

    Hi,

    It seems that your theme is using/importing tgmpa in a inappropriate way, causing my plugin and any other that uses tgmpa to break.

    My advise would be to contact the theme authors so that they properly include the file.

    I could have a look to make a workaround.

    Cheers,
    David

    Hi @soulipsyz

    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 /srv/users/bedtones/apps/bedtones/public/wp-content/themes/kona/plugin-activation/ 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 David Rosendo

    (@drosendo)

    Hi @jrf,

    Thanks for the input.

    Cheers,
    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error during setup’ is closed to new replies.