• Resolved harrynieto

    (@harrynieto)


    I am getting this error message this morning. Everything has been working fine for last 2 weeks so thought this might be a plugin update issue.

    Fatal error: Cannot redeclare tgmpa() (previously declared in /home/bluejayband/public_html/wp-content/plugins/maxgalleria/libs/TGMPA-TGM-Plugin-Activation/class-tgm-plugin-activation.php:1927) in /home/bluejayband/public_html/wp-content/themes/zerif-lite/class-tgm-plugin-activation.php on line 1927

    Thoughts? Resolutions? Thanks

    H

    https://wordpress.org/plugins/maxgalleria/

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

    (@alanp57)

    Harry,

    Some one else had this issue a few weeks ago. We included a setting that you can add to your wp-config.php file that will turn of the use of the TGMPA library:

    define('TGMPA_OFF', true);

    Put this before the line that says “That’s all, stop editing! Happy blogging”. Then you should be able to activate Maxgalleria.

    Alan

    @harrynieto This is not an issue with the MaxGalleria plugin, but with the theme you are using ‘Zerif Lite’.

    They have a typo (or rather, search and replace error) in their code:
    https://themes.trac.wordpress.org/browser/zerif-lite/1.8.2.4/class-tgm-plugin-activation.php#L1917

    That line should read:
    if ( ! function_exists( 'tgmpa' ) ) {

    As they incorrectly changed it, the function is being redefined causing that error.

    Please ask the theme author @codeinwp to fix this.

    Hope this helps.

    Smile,
    Juliette

    Thread Starter harrynieto

    (@harrynieto)

    Thank you Alan and Juliette, appreciate the information. I will look into both these options. Have a great day.

    H

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

The topic ‘Fatal error: class-tgm-plugin-activation.php’ is closed to new replies.