• Resolved tnightingale

    (@tnightingale)


    Re: the page link provided, I’ve commented out the slideshow code for now until this is fixed. Testing on a draft page instead. Same issue when previewing.

    Went through the troubleshooting list. Problem happens to all slideshows except one. None are using legacy sliders – all using Flexslider. The only one that works is using carousel mode. Using PHP8.1. Latest WP and other plugins. Active live site so can’t disable other plugins to test.

    When editing the problematic slideshows, “Preview” frame gives Internal Server Error (500).

    Tried making a brand new slideshow – same problem. Even when all settings (except height and width) are the same as the one that’s working.

    Tried rolling back to 3.70.0 and then 3.62.0. Same errors.

    After saving, cannot edit a draft page with the shortcode for a non working slideshow – produces a critical site error. Can preview the page (blank from slideshow onward).

    With debugging on, here are the errors (replaced site info with “example”):

    Warning: Trying to access array offset on value of type null in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.flex.class.php on line 104
    
    Warning: foreach() argument must be of type array|object, null given in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php on line 526
    
    Warning: Undefined variable $pairs in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php on line 536
    
    Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php:536 Stack trace: #0 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php(536): implode(',\n ...', NULL) #1 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php(403): MetaSlider->get_javascript_parameters() #2 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php(721): MetaSlider->get_inline_javascript() #3 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.flex.class.php(283): MetaSlider->enqueue_scripts() #4 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/ml-slider.php(606): MetaFlexSlider->enqueue_scripts() #5 /home/exampleuser/public_html/example.com/wp-includes/shortcodes.php(433): MetaSliderPlugin->register_shortcode(Array, '', 'metaslider') #6 [internal function]: do_shortcode_tag(Array) #7 /home/exampleuser/public_html/example.com/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(metasl...', 'do_shortcode_ta...', '\n<p><b>This is ...') #8 /home/exampleuser/public_html/example.com/wp-includes/class-wp-hook.php(324): do_shortcode('\n<p><b>This is ...') #9 /home/exampleuser/public_html/example.com/wp-includes/plugin.php(205): WP_Hook->apply_filters('\n<p><b>This is ...', Array) #10 /home/exampleuser/public_html/example.com/wp-includes/post-template.php(256): apply_filters('the_content', '<!-- wp:paragra...') #11 /home/exampleuser/public_html/example.com/wp-content/themes/cca2019/template-parts/content-page.php(20): the_content() #12 /home/exampleuser/public_html/example.com/wp-includes/template.php(812): require('/home/suncoas48...') #13 /home/exampleuser/public_html/example.com/wp-includes/template.php(745): load_template('/home/suncoas48...', false, Array) #14 /home/exampleuser/public_html/example.com/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #15 /home/exampleuser/public_html/example.com/wp-content/themes/cca2019/page.php(38): get_template_part('template-parts/...', 'page') #16 /home/exampleuser/public_html/example.com/wp-includes/template-loader.php(106): include('/home/suncoas48...') #17 /home/exampleuser/public_html/example.com/wp-blog-header.php(19): require_once('/home/suncoas48...') #18 /home/exampleuser/public_html/example.com/index.php(17): require('/home/suncoas48...') #19 {main} thrown in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php on line 536

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tnightingale

    (@tnightingale)

    Update: I ended up rolling back the other plugin (that required PHP 8.0+) and then reverting to 7.4 and the slides are all working fine again. So it’s a problem with PHP8.1 and MS, apparently. Hopefully this can be fixed in the next update?

    Plugin Contributor rochdesigns

    (@rochdesigns)

    Hi @tnightingale thanks for this. Can you please provide the settings of your slideshow so we can replicate the error on our end? Thanks!

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @tnightingale. Thanks for using MetaSlider. We’ve not heard from you in 10 days so are closing this ticket. Please post back again if this remains an issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal php error “Argument #1 ($pieces) must be of type array…”’ is closed to new replies.