Fatal error: Call to undefined function: votingapi_rebuild_action_cache() in /home/martin/public_html/sites/www.hyperlogos.org/modules/votingapi/votingapi.module on line 38

Bummer mang.

CommentFileSizeAuthor
#5 votingapi.patch.txt670 bytescolan
#4 votingapi_inc.patch752 bytesChrisKennedy

Comments

krisvannest’s picture

Version: master » 4.7.x-1.x-dev

Also occurs under 4.7.0— as soon as enable "Actions" module I get:

Fatal error: Call to undefined function: votingapi_rebuild_action_cache() in /home/castingn/public_html/modules/votingapi/votingapi.module on line 38
vm’s picture

its an order of operations situation and shouldnt effect the modules from working.
if you enable in reverse order this error does not happen.

I am using both on a site and have had no troubles with either module not working after seeing that error.

krisvannest’s picture

VeryMisunderstood, confirmed— just reverse-enabled (disabled both, enabled actions, enabled voting api) and all works now. Nice; many thanx.

btw, not sure how to file this... not really fixed in the global sense, because unsuspecting user won't know the correct order... so just leaving as active.

-KV

ChrisKennedy’s picture

StatusFileSize
new752 bytes

I haven't been able to reproduce the error but this might fix it.

colan’s picture

Status: Active » Needs work
StatusFileSize
new670 bytes

I was able to reproduce it, and it more or less fixes the problem. When enabling actions, the crash still happens. But when hitting the page again, it works fine. I don't have the time right now to look into this further, but it could be an ordering or cache problem. Anyway, here's a more Drupally version of the above patch.

vm’s picture

I haven't seen this issue come up again at all with regards to the last releases. This could probably be marked as fixed.

eaton’s picture

Status: Needs work » Closed (fixed)

Voting Actions is no longer part of the VotingAPI module; at some point I may be able to pick it back up, but at present I don't have the bandwidth to upgrade it to D5/D6 properly.

mitchell’s picture

Title: votingapi+actions problem » Actions Integration
Version: 4.7.x-1.x-dev » 6.x-2.x-dev
Category: bug » feature
Status: Closed (fixed) » Postponed

Rules is the way to go; and this feature is actively being developed over at #319094: Integration with Rules

If someone wants to move that issue back into the Voting API queue and mark this as a duplicate, I think that makes sense as well.

mitchell’s picture

Status: Postponed » Closed (duplicate)

Marking as duplicate of #319094: Integration with Rules.