[Resolved] Problema al activar versión PRO

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Problema al activar versión PRO

This topic contains 6 replies, has 2 voices, and was last updated by  Tom 2 weeks, 1 day ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11492

    Xus
    Participant

    hola,

    acabo de comprar la licencia, y al actualizar el plugin me da el siguiente error.

    Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in pornocheff.com/web/htdocs/wp-content/plugins/wp-show-posts-pro/inc/class-tgm-plugin-activation.php:3154) in pornocheff.com/web/htdocs/wp-content/themes/ilutube/inc/admin/class-tgm-plugin-activation.php on line 2218

    my site: https://pornocheff.com

    #11505

    Tom
    Keymaster

    Hi there,

    It looks like your theme needs to check to make sure TGMPA isn’t already loaded. This can be done using ! class_exists( 'TGM_Plugin_Activation' ) in the file where it loads it.

    #11507

    Xus
    Participant

    Hola,

    el archivo class-tgm-plugin-activation.php que es donde carga el TGM ya dispone en la linea 35.

    ! class_exists( ‘TGM_Plugin_Activation’ )

    que puedo hacer más?

    gracias!

    #11522

    Xus
    Participant

    he probado esto:
    https://colorlib.com/wp/forums/topic/errog-with-plugin-page-is-gone/

    Replace in:
    class-tgm-plugin-activation.php
    The line 1927 with the original one:
    if ( ! function_exists('tgmpa') ) {

    y tampoco me funciona, dando el error

    Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in pornocheff.com/web/htdocs/wp-content/plugins/wp-show-posts-pro/inc/class-tgm-plugin-activation.php:3154) in pornocheff.com/web/htdocs/wp-content/themes/ilutube/inc/admin/class-tgm-plugin-activation.php on line 2218

    #11583

    Tom
    Keymaster

    In our pro version, that function is wrapped like this:

    if ( ! function_exists( 'tgmpa_load_bulk_installer' ) ) {
    
    }

    That will prevent this error from happening if another plugin has the same function. However, that other plugin must also use the functon_exists() function, or this error can happen.

    #11673

    Xus
    Participant

    Gracias ya esta funcionando!

    #11701

    Tom
    Keymaster

    You’re welcome 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.