• Resolved anphira

    (@anphira)


    Just updated one of my sites to Fruitful 3.2.

    And I got an error message about tgmpa() being redeclared on line 2062 of plugin-activation.php. I checked the file and on line 2052 there is a

    if ( ! function_exists( 'fruitful' ) ) {

    When I changed this to the more logical

    if ( ! function_exists( 'tgmpa' ) ) {

    The site started working again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @anphira, I know theme authors have to replace the text-domain in the TGMPA class to match the theme’s if they to publish the theme on wp.org, so it looks like the author did a bit too careless search & replace in this case.

    Your fix is correct and how the code *should* look.

    @fruitfulcode – you may want to start using the Custom TGMPA Generator. First to fix the current version and for the future to get updated versions of TGMPA.
    The Custom Generator will serve you with a customized download of TGMPA which will pass the Theme Check rules.

    The same issue here. Thanks for the solution.

    Theme Author Fruitful Code

    (@fruitfulcode)

    Hello,

    Thank you for letting us know about this problem. Shortly our developers eliminate this bug

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error in /inc/func/plugin-activation.php’ is closed to new replies.