WPIntell

Source evidence

Missing argument 2 for myplugin_widget

Simple Image Widget · support · 2016-05-31T11:26:00+00:00

mixedsentiment
mediumseverity
0.73relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 27 rows with source links

14.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
RVD501 resolved
I have problems with the image widget. Do you have a solution? Warning: Missing argument 2 for myplugin_widget_title() in /home/vhosts/radio501.nl/httpdocs/wp-content/themes/on-air/functions.php on line 242 Warning: Missing argument 3 for myplugin_widget_title() in /home/vhosts/radio501.nl/httpdocs/wp-content/themes/on-air/functions.php on line 242 https://wordpress.org/plugins/simple-image-widget/ Those error messages don’t appear to be related to this plugin since they’re being generated by code in your theme. My best guess is that you’ll need to modify the call to add_filter() in your theme to make sure all 3 arguments get passed to your callback function. You’ll probably have a line in your theme that looks something like this: add_filter( 'widget_title', 'myplugin_widget_title' ); It should look like this: add_filter( 'widget_title', 'myplugin_widget_title', 10, 3 ); You can also update the parameters in your callback to make them optional: function myplugin_widget_title( $title, $instance = array(), $id_base = '' ) {}

Comments

1 shown
Brady Vercher 2016-06-02T00:56:00+00:00

Those error messages don’t appear to be related to this plugin since they’re being generated by code in your theme. My best guess is that you’ll need to modify the call to add_filter() in your theme to make sure all 3 arguments get passed to your callback function. You’ll probably have a line in your theme that looks something like this: add_filter( 'widget_title', 'myplugin_widget_title' ); It should look like this: add_filter( 'widget_title', 'myplugin_widget_title', 10, 3 ); You can also update the parameters in your callback to make them optional: function myplugin_widget_title( $title, $instance = array(), $id_base = '' ) {}