Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

call_user_func_array ??? WordPress


<blockquote>Warning: call_user_func_array() []: First argument is expected to be a valid callback, 'Testimonials_Widget::get_testimonials_scripts' was given in /home/american/public_html/wp-includes/plugin.php on line 403</blockquote>

I updated the [[LINK href=""]]Testimonials widget[[/LINK]] to v2.0.1 and now I see the above error message on my site, at the bottom just below the footer. But the Testimonials widget does seem to be working.

Anyone know what this error is saying or how to resolve it?

EDIT: And now I notice that the testimonials aren't cycling through every 10 seconds like they were before. The refresh interval is still set for 10 seconds, but the only way to see a new testimonial is via a reload of the page. Is that related to the error I cited above?

Answers (1)


Plugarized answers:

Hi please download the following file and change the extension to .php and replace with the one from your plugin.

The issue is here

`add_action( 'wp_footer', 'Testimonials_Widget::get_testimonials_scripts', 20 );` Line 350

It should be

`add_action( 'wp_footer', array( &$this, 'Testimonials_Widget_Widget' ), 20 );`

Thats why the error says expecting a valid callback, because the first callback is wrong...

c a comments:

I tried it and the error msg is gone. Thanks!
So you're saying the plugin developer just overlooked something and hopefully they'll fix it in their next update?