• Resolved beka47

    (@beka47)


    WP 5.9.2, Envira Gallery Lite v. 1.8.4, PHP 8.0.16

    After updating to Envira Gallery Lite v. 1.8.4 I get the following fatal error:

    <b>Fatal error</b>:  Uncaught Error: Call to undefined function is_plugin_active() in 
      /var/.../plugins/envira-gallery-lite/includes/global/shortcode.php:1955
    Stack trace:
    #0 /var/.../plugins/envira-gallery-lite/includes/global/shortcode.php(198): Envira_Gallery_Shortcode->plugin_humility()
    #1 /var/.../wp-includes/shortcodes.php(356): Envira_Gallery_Shortcode->shortcode(Array, '', 'envira-gallery')
    #2 [internal function]: do_shortcode_tag(Array)
    #3 /var/.../wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(envira...', 'do_shortcode_ta...', '\n<h1 class=&quot;sei...')
    #4 /var/.../wp-includes/class-wp-hook.php(307): do_shortcode('\n<h1 class=&quot;sei...')
    #5 /var/.../wp-includes/plugin.php(189): WP_Hook->apply_filters('\n<h1 class=&quot;sei...', Array)
    #6 /var/.../wp-includes/post-template.php(253): apply_filters('the_content', '<!-- wp:heading...')
    #7 /var/.../themes/inspiro-child/template-parts/page/content-page.php(56): the_content()
    #8 /var/.../wp-includes/template.php(772): require('/var/vhosts...')
    #9 /var/.../wp-includes/template.php(716): load_template('/var/vhosts...', false, Array)
    #10 /var/.../wp-includes/general-template.php(204): locate_template(Array, true, false, Array)
    #11 /var/.../themes/inspiro-child/page.php(33): get_template_part('template-parts/...', 'page')
    #12 /var/.../wp-includes/template-loader.php(106): include('/var/vhosts...')
    #13 /var/.../wp-blog-header.php(19): require_once('/var/vhosts...')
    #14 /var/.../index.php(17): require('/var/vhosts...')
    #15 {main}
      thrown in <b>/var/.../plugins/envira-gallery-lite/includes/global/shortcode.php</b> on line <b>1955</b><br />

    Removing

    if ( is_plugin_active( 'enable-media-replace/enable-media-replace.php' ) ) {
                add_action( 'enable-media-replace-upload-done', array( $this, 'emr_clear_envira_cache' ), 10, 3 );
    }

    helps as a temporary solutuion.

    Thanx for a corrected update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @beka47

    I apologize for the trouble. Thank you for bringing this to our attention. Our team just released Envira Gallery Lite 1.8.4.1, which should resolve this issue. Can you please upgrade the plugin at your earliest convenience, and let me know your results?

    Thank you!

    Thread Starter beka47

    (@beka47)

    v.1.8.4.1 having the additional check with function_exists('is_plugin_active')... in line 1955 of ‘shortcode.php’ fixes the error!
    Thanx so much for your fast intervention.

    Hi @beka47

    Thank you for confirming!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error – Envira Gallery Lite v 1.8.4.0 – shortcode.php’ is closed to new replies.