I tried updating from 2.6 - 2.9. I have voting enabled on comments and tried deleting a comment that had votes on it. After clicking the confirm/delete button I got the following fatal error.

"PHP Fatal error: Class name must be a valid object or a string in ..../drupal/includes/common.inc on line 7686, referer: ...../comment/535528/delete"

Also, the comment was not deleted. I reverted to 2.6 and do not get this error.

Comments

torotil’s picture

Assigned: Unassigned » torotil
torotil’s picture

I failed to reproduce your error, so I need a little bit more information:

What voting module (and version) are you using?

ccamporeale’s picture

I'm using 2.9 and have the same issue in conjunction with voting_rules-7.x-1.0-alpha1.
I applied the changes referenced here: http://drupal.org/node/1810836#comment-6624482, but this did not seem to have an effect.

The attached patch solved my issue, but I feel like I may be missing something obvious.

jojonaloha’s picture

I'm using http://drupal.org/project/rate 7.x-1.4 which I had just updated from 7.x-1.3

torotil’s picture

Status: Active » Fixed

Thanks ccamporeale for pointing me in the right direction with your patch. I just commited a fix to 7.x-2.x.

Please try if the bug is fixed for you in the current dev version.

mermemladeK’s picture

Same problem here but when deleting nodes, not comments.

  • Voting API 7.x-2.9
  • Voting Rules 7.x-1.0-alpha1
  • Rate 7.x-1.4

Could you tell me how to update Voting API to a dev release without having to uninstall and disable modules?

Or maybe I can just apply the patch above?

Thank you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.