Support » Theme: Seek » TGMPA conflict

  • Nabil

    (@nabil_kadimi)


    Thank you for this theme.

    We are seeing this error:

    Fatal error: Cannot redeclare tgmpa()...

    This is generally fixed by wrapping the code that includes the TGMPA class in an if function_exists( 'tgmpa' ).

    Thanks
    Nabil

    • This topic was modified 10 months ago by Nabil.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author themeinwp

    (@themeinwp)

    Hi @nabil_kadimi

    Thank you very much for letting us know we will be fixing it and release soon on our upcoming updates.

    Best Regards

    This is generally fixed by wrapping the code that includes the TGMPA class in an if function_exists( ‘tgmpa’ ).

    Sorry, but that is not the right solution.

    The problem is that the theme author clearly has done a manual search & replace in the TGMPA code – probably for the text domain – and done this incorrectly.

    The TGMPA code already has a function_exists( 'tgmpa' ), but the theme author has inadvertently changed this to function_exists( 'seek' ), which is what is causing the problem.
    See: https://themes.trac.wordpress.org/browser/seek/1.0.1/assets/libraries/TGM-Plugin/class-tgm-plugin-activation.php#L1886

    Also, the version of TGMPA used is out-of-date. (version 2.5.0 versus 2.6.1)

    Please @themeinwp: download a new version of TGMPA using the Custom Download Manager – if you choose wordpress.org as the distribution channel, you will get a fully functional version which already has the text domains and some other things adjusted as per the theme handbook.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TGMPA conflict’ is closed to new replies.