Support » Plugin: Black Studio TinyMCE Widget » icl_sw_filters_widget_text

  • Resolved jarnoan

    (@jarnoan)


    We had a problem where the text of text widgets was not showing on pages. Error log shows entries like

    [13-Dec-2017 09:25:29 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'icl_sw_filters_widget_text' not found or invalid function name in /home/itukylat/public_html/wp-includes/class-wp-hook.php on line 288

    The only place where I can find hook to icl_sw_filters_widget_text being added is in black-studio-tinymce-widget/includes/class-compatibility-plugins.php, function wpml_widget_after:

    if ( false === has_filter( 'widget_text', 'icl_sw_filters_widget_text' ) && function_exists( 'icl_sw_filters_widget_text' )  || version_compare( $this->wpml_get_version(), '3.8.0' ) >= 0 ) {
        add_filter( 'widget_text', 'icl_sw_filters_widget_text', 0 );
    }                                }
    

    and indeed that gets called, even though I don’t have WPML String Translation plugin installed, and there is no icl_sw_filters_widget_text function anywhere.

    If I define icl_sw_filters_widget_text function myself, the widget text is shown correctly. Could there be something wrong with that if statement?

    List of plugins installed:

    itukylat@cls [~/public_html]# wp plugin list
    +-------------------------------+----------------+-----------+---------+
    | name                          | status         | update    | version |
    +-------------------------------+----------------+-----------+---------+
    | all-in-one-event-calendar     | active-network | available | 2.5.10  |
    | black-studio-tinymce-widget   | active-network | none      | 2.6.0   |
    | cyclone-slider                | active         | none      | 3.2.0   |
    | sis-facebook-like-box         | active         | none      | 2.1.1   |
    | limit-login-attempts-reloaded | active-network | available | 2.6.2   |
    | optimus                       | active-network | none      | 1.4.9   |
    | social-media-feather          | active-network | none      | 1.8.4   |
    | types                         | active-network | available | 2.2.20  |
    | widget-logic                  | active-network | none      | 5.9.0   |
    | wordpress-mu-domain-mapping   | inactive       | none      | 0.5.5.1 |
    | wp-category-posts-list        | active-network | none      | 2.0.3   |
    | sitepress-multilingual-cms    | active         | none      | 3.8.4   |
    +-------------------------------+----------------+-----------+---------+
    • This topic was modified 2 years, 2 months ago by jarnoan.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘icl_sw_filters_widget_text’ is closed to new replies.