• If you’re using the plugin and trying to update to PHP 8 you’ll start getting a deprecation notice:
    Required parameter $atts follows optional parameter $output

    While this is harmless, it’s annoying as heck having it polluting your logs.

    It’s unlikely that a plugin without updates for 5 years (thank you for all those great years of use for free) will get updated by the author.

    There is an easy fix though. Go into the plugins main file

    gallery-slideshow.php

    and add null placeholder values to the filter on line 87, change:

    function gss_gallery_sc_filter( $output = '', $atts, $instance = '' ) {
    to

    function gss_gallery_sc_filter( $output = '', $atts = null, $instance = null ) {

    This pattern to silence the deprecated notice will work elsewhere as well.

  • The topic ‘Required parameter $atts follows optional parameter $output’ is closed to new replies.