"Call to undefined function fivestar_widget_form()" error I am getting the following error - it's related to the fivestar module. As far as I can tell, it is using an obsolete function call (used in Drupal 6)

Fatal error: Call to undefined function fivestar_widget_form() in /home/SITENAME/public_html/sites/all/modules/contrib/views_php/plugins/views/views_php_handler_field.inc(202) : runtime-created function on line 5


The problem is that I've looked at all references to the widget in the template files, tried to change them.

I've tried the following, as said here, but I keep getting the error.

print render(fivestar_widget_form($node));
print render($content['field_vote']);
print drupal_render($content['field_vote']);
print drupal_render(fivestar_widget_form($node));


What could be causing the error?
There's no function called fivestar_widget_form() in the Drupal 7 version of Fivestar (I've just grepped the module folder).

It's likely that function is a CCK hook remnant, CCK having been incorporated into the core Field module in Drupal 7, and all of it's functions renamed.

As far as I know there's no easy way in Drupal 7 to use a field widget form as a stand-alone form so you might have to look for another way around this problem.