• Resolved vandung93

    (@vandung93)


    Hello there,

    Your plugin apply_filters widget_title with only param.
    Line 54 file: mailchimp-for-wp/includes/forms/class-widget.php
    $title = apply_filters( 'widget_title', $instance_settings['title'] );

    This made Fatal error: Uncaught ArgumentCountError: Too few arguments to function…
    If there are some plugins or themes add this filter with standard 3 params. Could you check & fix it please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vandung93

    (@vandung93)

    Please use this code

    $title = apply_filters( 'widget_title', $instance_settings['title'], $instance_settings, $this->id_base );

    Plugin Contributor Lap

    (@lapzor)

    Hi,

    This is already fixed in the development version of the plugin: https://github.com/ibericode/mailchimp-for-wordpress/commit/d138d53c394e9f3e8d717635644c0188222ed082

    The fix will be included in the next official update. If you can’t wait you can download the development version from Git.

    Thanks for reporting the issue.

    ?Thanks for letting me know.

    Thread Starter vandung93

    (@vandung93)

    Thank you for your quick reply. Hopy you will release new version soon.

    Plugin Contributor Lap

    (@lapzor)

    Another way to fix it temporarily is to manually edit the wp-content/plugins/mailchimp-for-wordpress/includes/forms/class-widget.php file, line 54

    from

    $title = apply_filters( 'widget_title', $instance_settings['title'] );

    to

    $title = apply_filters( 'widget_title', $instance_settings['title'], $instance_settings, $this->id_base );

    And when the next update comes out it will overwrite that file with the updated version that has this same change already.

    Hope that helps. If you have any questions, please let me know!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Too few arguments to filter widget_title’ is closed to new replies.