Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Page 1 of 2
Community poll disappears on page refresh
 
JohnXavier
Jr. Member
 
Total Posts:  3
Joined:  2008-08-06
 

Hi - I added a new poll and deleted the original one. The poll works fine, gives the statistics but when I refresh the page the entire poll disappears from the page.
I tried this in both IE and Firefox.
Any ideas? Thanks -

 
Magento Community Magento Community
Magento Community
Magento Community
 
ericscott
Member
 
Total Posts:  57
Joined:  2008-05-14
 

This happens to me as well. Are there any fixes for this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
kullysupply
Member
 
Avatar
Total Posts:  48
Joined:  2008-08-05
 

I think I got this figured out. When you vote on a poll, that poll id is added to “voted poll id” list. When the page is refreshed, Magento looks for a poll that HASN’T been voted on! If it can’t find one (i.e. there is only one active poll), nothing shows. Here’s how I fixed it:

In the file app/code/core/Mage/Poll/Block/ActivePoll.php, comment out the $votedIds = $pollModel->getVotedPollsIds() line and add an empty array as follows:

$pollModel Mage::getModel('poll/poll');
        
// get last voted poll (from session only)
        
$pollId Mage::getSingleton('core/session')->getJustVotedPoll();
        if (empty(
$pollId)) {
            
// get random not voted yet poll
            //$votedIds = $pollModel->getVotedPollsIds();
            
$votedIds = array();
            
$pollId $pollModel->setExcludeFilter($votedIds)
                ->
setStoreFilter(Mage::app()->getStore()->getId())
                ->
getRandomId();
        
}
        
if (empty($pollId)) {
            
return false;
        
}
        $poll 
$pollModel->load($pollId);

 
Magento Community Magento Community
Magento Community
Magento Community
 
Oldgamer
Sr. Member
 
Avatar
Total Posts:  142
Joined:  2008-09-12
 

As I know, in admin panel it is possible to set configuration the way that customer can vote only once for particular IP address.
I am not sure what way it was done, but…
Did you check that after this modification this feature (voting only one time) is still works fine?
If it does, I think your modification should be included into the new version.

 Signature 

Video games, video game consoles, electronics, kids education software

 
Magento Community Magento Community
Magento Community
Magento Community
 
thomasmore
Sr. Member
 
Total Posts:  80
Joined:  2008-10-21
 

I still can’t get poll results to display in 116. My problem isn’t that the poll disappears, it just it doesn’t show results.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Eminent Style
Sr. Member
 
Avatar
Total Posts:  84
Joined:  2008-02-17
Bromsgrove, United Kingdom
 
kullysupply - 16 October 2008 07:21 AM

I think I got this figured out. When you vote on a poll, that poll id is added to “voted poll id” list. When the page is refreshed, Magento looks for a poll that HASN’T been voted on! If it can’t find one (i.e. there is only one active poll), nothing shows. Here’s how I fixed it:

In the file app/code/core/Mage/Poll/Block/ActivePoll.php, comment out the $votedIds = $pollModel->getVotedPollsIds() line and add an empty array as follows:

$pollModel Mage::getModel('poll/poll');
        
// get last voted poll (from session only)
        
$pollId Mage::getSingleton('core/session')->getJustVotedPoll();
        if (empty(
$pollId)) {
            
// get random not voted yet poll
            //$votedIds = $pollModel->getVotedPollsIds();
            
$votedIds = array();
            
$pollId $pollModel->setExcludeFilter($votedIds)
                ->
setStoreFilter(Mage::app()->getStore()->getId())
                ->
getRandomId();
        
}
        
if (empty($pollId)) {
            
return false;
        
}
        $poll 
$pollModel->load($pollId);

Thanks very much, thought I was going mad.

 Signature 

Ben Bishop
Eminent Style - Hand Crafted Web Design & Development

 
Magento Community Magento Community
Magento Community
Magento Community
 
sgomez
Jr. Member
 
Total Posts:  3
Joined:  2008-11-03
Madrid
 
thomasmore - 24 October 2008 01:19 PM

I still can’t get poll results to display in 116. My problem isn’t that the poll disappears, it just it doesn’t show results.

Hi everyone!!,

I´m newbie in Magento. I´m using 1.1.6 version too, and I have the same problem, my poll doesn´t show results.

Please, I need some help!!.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kriv
Jr. Member
 
Total Posts:  3
Joined:  2008-08-12
 

Hi everyone.  I am on 1.1.8 version, and the poll doesn’t show results once you vote.  It seems to take the vote ok, but if I allow only one vote per IP address the poll disappears and nothing is displayed.  If I allow multiple votes per IP, the poll is displayed again...no results!

Any help would be appreciated. Thanks in advance.

Aaron

 
Magento Community Magento Community
Magento Community
Magento Community
 
rowi
Jr. Member
 
Total Posts:  6
Joined:  2008-11-22
 

Same here, the poll shows no results!
I had this with 1.1.8 and now also with 1.2.0

 
Magento Community Magento Community
Magento Community
Magento Community
 
rowi
Jr. Member
 
Total Posts:  6
Joined:  2008-11-22
 

Still having this problem, absolutely no results on google…

 
Magento Community Magento Community
Magento Community
Magento Community
 
pixelpusher
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-04-23
SoCal
 

had this problem on 1.1.8 used the fix worked fine. now have it again on 1.2.0.1 has anyone filed a bug report?

 
Magento Community Magento Community
Magento Community
Magento Community
 
rowi
Jr. Member
 
Total Posts:  6
Joined:  2008-11-22
 

I really believed someone would have a simple fix ( some setting that should be changed )

But now i realize this actually is a bug, and I have reported it just moments ago.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Noémie
Jr. Member
 
Total Posts:  14
Joined:  2009-02-05
 

It seems that the bug is not detailled enough :
http://www.magentocommerce.com/bug-tracking/issue?issue=4761
It has been closed !

 
Magento Community Magento Community
Magento Community
Magento Community
 
vij
Sr. Member
 
Total Posts:  81
Joined:  2009-02-13
 

hi
same problem in 1.2.1 after voting it doesnt shows result
is there any one who will solve my problem

thanks in advance

 
Magento Community Magento Community
Magento Community
Magento Community
 
978bobs
Member
 
Total Posts:  44
Joined:  2009-01-11
 

Bottom line is that the poll feature does not work.  Hasn’t for a couple of iterations of the code.  Tested on both IE7 and FF - no luck.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vij
Sr. Member
 
Total Posts:  81
Joined:  2009-02-13
 

the voting result show on live but not on local machine

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|937 users currently online|497235 forum posts