Closed (fixed)
Project:
Pollfield
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2007 at 21:17 UTC
Updated:
7 Mar 2008 at 18:21 UTC
clean, stock drupal 5.1 install, cck-5.x-1.5. Pollfield does not reflect votes -- it registers that a user has voted and provides a button for cancelling his vote, but does not show that any votes have taken place (shows 0 votes registered), and when the user clicks the "cancel my vote" button, it throws an error:
You are not allowed to cancel an invalid poll choice.
Any ideas?
Comments
Comment #1
jamesJonas commentedBug Confirmed. Same setup.
Comment #2
sudeoo commentedConfirmed. Me too having the same problem. Anybody any ideas. Some patch or something. Already taken a lot of time.
Comment #3
sudeoo commentedConfirmed. Me too having the same problem. Anybody any ideas. Some patch or something. Already taken a lot of time.
Comment #4
adamh commentedIs there any solution for this?
Comment #5
adamh commentedIt looks like changing the "table" parameter from cache to cache_content in pollfield_clear function around line 800 in pollfield.module fixes this.
function pollfield_clear($node) {
$cid = 'content:'. $node->nid;
cache_clear_all($cid, 'cache_content', TRUE);
}
Can someone confirm that?
Comment #6
steven jones commentedYeah, seems to fix it!
Comment #7
naught101 commentednoice! works for me now too! please patch the head version!
Comment #8
xaverx commentedI apply this patch, but only administrator can vote, normal user not. He see only blank vote and cant vote.
Comment #9
yngens commentedsame problem here.
applying suggested change writes an error in logs:
Table 'my_db.cache_content' doesn't exist query: DELETE FROM cache_content WHERE cid LIKE 'content:6435%' in /home/mysite/public_html/includes/database.mysql.inc on line 155.
Comment #10
yngens commentedand indeed there is not 'cache_content' table in my DB. there only following tables:
cache
cache_filter
cache_menu
cache_page
Does my DB have incorrect structure or problem is somewhere in the module?
Comment #11
karens commentedFixed in http://drupal.org/node/151020.
The cache_content table was added to CCK somewhere along the line and would only be missing in an installation that had an outdated CCK version. The pollfield module code by April of 2007 had an if/then to clear the table whether it was named 'cache' or 'cache_content', so that should have worked at the time that the issue was reported.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.