Fatal error – Envira Gallery Lite v 1.8.4.0 – shortcode.php
-
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="sei...') #4 /var/.../wp-includes/class-wp-hook.php(307): do_shortcode('\n<h1 class="sei...') #5 /var/.../wp-includes/plugin.php(189): WP_Hook->apply_filters('\n<h1 class="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)
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.