FATAL ERROR (2.3.6)
-
Hello,
The current version of this plugin (2.3.6) generates a PHP Fatal Error on pages where the shortcodes are used.The site is using PHP 8.2, and everything is up to date. Disabling the plugin solves the issue. Find the full error log below.
Can you help me solve this error? Thanks in advance!
[27-Jun-2024 09:59:32 UTC] PHP Fatal error: ?Uncaught TypeError: GSTEAM\str_contains(): Argument #1 ($haystack) must be of type string, null given, called in /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/templates/partials/gs-team-layout-social-links.php on line 25 and defined in /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/includes/functions.php:716
Stack trace:
#0 /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/templates/partials/gs-team-layout-social-links.php(25): GSTEAM\str_contains(NULL, 'envelope')
#1 /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/templates/popups/gs-team-popup-default.php(66): include('/home/DOMAIN/...')
#2 /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/templates/popups/gs-team-layout-popup.php(24): include('/home/DOMAIN/...')
#3 /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/templates/gs-team-layout-popup.php(92): include('/home/DOMAIN/...')
#4 /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/includes/shortcode.php(364): include('/home/DOMAIN/...')
#5 /home/DOMAIN/public_html/wp-includes/shortcodes.php(433): GSTEAM\Shortcode->shortcode(Array, '', 'gsteam')
#6 [internal function]: do_shortcode_tag(Array)
#7 /home/DOMAIN/public_html/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(gsteam...', 'do_shortcode_ta...', '\n<h2 class="wp-...')
#8 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(324): do_shortcode('\n<h2 class="wp-...')
#9 /home/DOMAIN/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('\n<h2 class="wp-...', Array)
#10 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/inc/addons/modules/custom_layouts/admin/builders/class-hestia-default-editor.php(51): apply_filters('the_content', '<!-- wp:heading...')
#11 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/inc/addons/modules/custom_layouts/admin/builders/class-hestia-loader.php(179): Hestia_Default_Editor->render(2509)
#12 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/inc/addons/modules/custom_layouts/admin/builders/class-hestia-loader.php(134): Hestia_Loader->render_inline_markup(false)
#13 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(324): Hestia_Loader->render_all_markup('')
#14 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#15 /home/DOMAIN/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#16 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/inc/hooks/hooks-front-page.php(261): do_action('hestia_after_ab...')
#17 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/inc/views/front-page/class-hestia-about-section.php(94): hestia_after_about_section_trigger()
#18 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(324): Hestia_About_Section->render_section(false)
#19 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#20 /home/DOMAIN/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#21 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/inc/views/front-page/class-hestia-about-section.php(32): do_action('hestia_do_about...', false)
#22 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(324): Hestia_About_Section->do_section(false)
#23 /home/DOMAIN/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#24 /home/DOMAIN/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#25 /home/DOMAIN/public_html/wp-content/themes/hestia-pro/front-page.php(39): do_action('hestia_sections', false)
#26 /home/DOMAIN/public_html/wp-includes/template-loader.php(106): include('/home/DOMAIN/...')
#27 /home/DOMAIN/public_html/wp-blog-header.php(19): require_once('/home/DOMAIN/...')
#28 /home/DOMAIN/public_html/index.php(17): require('/home/DOMAIN/...')
#29 {main}
? thrown in /home/DOMAIN/public_html/wp-content/plugins/gs-team-members/includes/functions.php on line 716
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.