I had no problem installing and using version 1.2. But I just installed the 1.3 version and there are problems:

1) none of the voting api actions files are part of the tarball anymore
2) I get the following php errors:

Invalid argument supplied for foreach() in /var/www/html/sites/default/modules/votingapi/votingapi_views.inc on line 8

Invalid argument supplied for foreach() in /var/www/html/sites/default/modules/votingapi/votingapi_views.inc on line 107.

Hope this is not an operator error

John

Comments

femrich’s picture

I've got the same problem, which I reported here: http://drupal.org/node/129669 (Sorry, had not found this report before I posted mine.) Will follow both threads to hope for a solution. In the meantime, I'm going back to version 1.2...

eaton’s picture

This only seems to appear when there is *no* voting data cast yet. If you cast a vote or two on any content, it should start working again. I'll post a fix shortly. Thanks for spotting it!

jadams1-1’s picture

Thanks for your response Eaton. How about the votingapi actions files? they are suppose to be part of this package right? They are missing in the 1.3 version.

nancydru’s picture

watching

eaton’s picture

Status: Active » Fixed

The foreach error (which occurred when VotingAPI's views support initialized for the first time on a DB with no existing voting data) has been fixed. I've rolled version 1.4 of the module to help.

The actions files are NOT included in the official 1.3 or 1.4 versions of the API at the moment, because there is no integrated UI to work with them. Keep in mind that the code for handling actions in this project is completely separate from the older 'voting_actions' project. The intgrated system that's hidden in the 1.3 and 1.4 releases of VotingAPI will emerge in the future when the UI is finished.

femrich’s picture

Status: Fixed » Postponed (maintainer needs more info)

(I am duplicating my comment at this node [http://drupal.org/node/129669] because I am not sure if it is being watched or not now as it was marked as a duplicate issue. Sorry if this is a newbie action--I'm still learning how the support network at Drupal functions best...)

Okay, I see there have been updates so now I have upgraded from version 1.2 to the (now current) version 1.5. Upon completing the upgrade and running the install script, I receive no errors. (Yay!) However, though I have double-checked and I have, indeed, installed version 1.5, my status update page tells me I am only running version 1.4 and prompts me to upgrade to 1.5.

A fix for this, please?

femrich’s picture

Sorry, I got the problem in reverse. My update status page indicates I have installed v. 1.5, but it prompts me to upgrade to what it thinks is the latest version, 1.4. Still would be nice to fix this in order to remove a bogus "problem" from my system...

eaton’s picture

Status: Postponed (maintainer needs more info) » 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.