When my cron runs, it generates the following error:
Fatal error: Call to undefined function comment_load() in /sites/all/modules/rate/rate.module on line 197

This started happening when I updated to Drupal 6.28.
Have tried different versions of Rate with the same result.

I see that there is a similar issue with D7 which was fixed, hope it can also be fixed in D6. http://drupal.org/node/1774468

Thanks!

Comments

vako’s picture

I disabled this module and can run cron now with no errors. Surprised that others have not encountered the same issue.

mauritsl’s picture

Status: Active » Postponed (maintainer needs more info)

Did you get an error?
And - if you upgraded the Rate module - did you ran update.php? There was a table added to the database, which leads to fatal errors when the update script was not used.

vako’s picture

Yes, I ran update.php several times, because I tried different dev and stable versions of the module. update.php after each change.
The error was the fatal error indicated above, only visible when cron runs.

Nick Robillard’s picture

I was getting this error in views (not just cron). This is pretty clearly a bug. There is no comment_load() function in Drupal 6, only _comment_load() I solved by replacing comment_load($content_id) with _comment_load($content_id) on line 197 and 519.

vako’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)

Thanks for the fix Nick. Hope the maintainer will include this as a patch soon.

rollingnet’s picture

please release a new version of module with patch for this bug
since it still here for over a year and it has never applied

lamp5’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (outdated)