When I used Ajax Polls module (http://drupal.org/project/ajax_poll), I voted and don't see any results after that (even if I reloaded the page). When I tried to vote again, I see this error:
array_shift() [function.array-shift]: The argument should be an array in file /home2/mysite/public_html/site/sites/all/modules/ajax_poll/ajax_poll.module in line 85.
http://www.mysite.com/site/poll/ajax/vote/1/1
and
Invalid argument supplied for foreach() in file /home2/mysite/public_html/site/modules/poll/poll.module in line 637.
this problem is only in the block. maybe its boost module fault?
http://drupal.org/node/874800
Thanks!
Comments
Comment #1
skolesnyk CreditAttribution: skolesnyk commentedSubscribing -- same problem here.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedare you using panels?
Comment #3
superfedya CreditAttribution: superfedya commentedNo.
Comment #4
parasolx CreditAttribution: parasolx commentedRegarding to this problem, I didn't use Ajax Poll module but Shoutbox module.
Both module operate with same processing which is enabling the Ajax function for the block.
After installing this module, shoutbox never auto refresh using ajax method. either to anonymous user or authenticated user. even admin also the shoutbox didn't refresh. so i think ajax poll module also facing this problem.
i try to exclude shoutbox page from being cache but the result still same because the problem is I can not to NOT CACHE the block.
IMHO, if this module featured with function to exclude certain block from being cache, the problem may solve. but this module was built to cache the whole page and not by element of page.
UPDATE: site also using FB status and ajax comment.. but its work correctly with boost. both modules also used ajax.
correct me if I'm wrong.
Comment #5
skolesnyk CreditAttribution: skolesnyk commentedNo Panels on my site either.
Comment #6
parasolx CreditAttribution: parasolx commentedUPDATED:
I'm just re-installed Boost module with:
1. Shoutbox 6.x-2.3 (the latest)
2. Ajax poll 6.x-1.0
3. Panel 6.x-3.7
Boost worked correctly.. no problem. And shoutbox implement new method of posting and ajax calling make it work perfectly with Boost.
also i haven;t experienced any problem with Ajax poll. it can function normally.
try to clearing the cache manually including "js" folder in sites/default/all/.