Page 1 of 1

Polls not working with SEF (workaround available)

Posted: Mon Jan 08, 2007 1:05 pm
by Paddy Landau
Description:
When upgrading to 1.0.12, the polls stop working. Specifically, when voting, the system cannot find the right page.

This is an old problem rearing its head again. It was reported as a bug (#43) some time ago, but I can't find the bug in the tracker.

As I recall, this only happens when using SEF features.

Reported on:
1.0.12

Classification:
[Q&T] Critical/High/Medium/Low/Enhancement

Affected functions:
Voting in a poll.

Related files:
modules/mod_poll.php

Steps to replicate:
  • Take an existing installation and upgrade to 1.0.12. (This will probably also happen with a virgin install, but I haven't tested that.)
  • Use SEF (I use OpenSEF).
  • Create a poll, or use an existing poll.
  • Vote in the poll.
Analysis:
[Q&T] Confirmed/Unable to confirm/Rejected
Any other comments

Proposed fix(es):
The old workaround works with 1.0.12, too. Here it is, repeated for convenience:

Bug #43:

In modules/mod_poll.php change the line:

Code: Select all

<form name="pollxtd<?php echo $z;?>" method="post" action="<?php echo sefRelToAbs("index.php?option=com_poll$_Itemid"); ?>">
to:

Code: Select all

<form name="pollxtd<?php echo $z;?>" method="post" action="index.php?option=com_poll<? echo $_Itemid; ?>">
Topic / Artifact ID:
On the old system, it was bug #43. I can't find it now.

System info:
Database Version: 4.1.15-standard
PHP Version: 4.4.1
Web Server: Apache/1.3.33
WebServer to PHP interface: apache
Joomla! Version: Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC

Re: Polls not working with SEF (workaround available)

Posted: Wed Jun 06, 2007 10:13 pm
by outlawpolyester
thanks, fix works great

Re: Polls not working with SEF (workaround available)

Posted: Tue Jun 12, 2007 8:14 pm
by urbangranolagirl
the change to the mod_poll.php file does not work for me.

The poll was working fine on my 1.0.10 testing server, but stopped after i moved the site to a new server with a 1.012 install. I had SEO on, but I have since uninstalled OpenSEF (since mod_rewrite not avail anyway), and turned off in global config, but the poll still does not work.

any suggestions?

Re: Polls not working with SEF (workaround available)

Posted: Fri Jul 06, 2007 10:34 am
by nafets7ro
worked for me ... many thanksĀ  :D

Re: Polls not working with SEF (workaround available)

Posted: Sun Jul 08, 2007 8:09 am
by Paddy Landau
urbangranolagirl wrote:the change to the mod_poll.php file does not work for me.
You moved to a new install...

Did you remember to change mod_poll.php again?

Re: Polls not working with SEF (workaround available)

Posted: Sat Mar 29, 2008 6:47 am
by cmosses
Has this been fixed in Joomla! 1.0.15?

Thanks.

Re: Polls not working with SEF (workaround available)

Posted: Mon Apr 28, 2008 6:13 pm
by ddp
cmosses wrote:Has this been fixed in Joomla! 1.0.15?

Thanks.
I would also like to know this. I am running 1.0.12 and have the same polls issue.
Polls work with SEF turned off but could not find the "thanks for voting" after hitting the vote button.

After applying the fix above now nothing at all happens when the vote button is pressed.

Any other suggestions?

Is this fixed in 1.0.15?

Re: Polls not working with SEF (workaround available)

Posted: Mon Apr 28, 2008 6:23 pm
by ddp
Ok. Tried again from my backup of mod_polls.php (always make a backup) and it worked the second time.

I would still like to know if this has been in 1.0.15 or if it goes on my list of hacks that I have to do after each upgrade :D

Re: Polls not working with SEF (workaround available)

Posted: Mon Jan 05, 2009 11:08 am
by wwhhing
My site polls still not working... disable the seo in global setting it works, but how to make capable with SEO and SEF? I'm using serrbizsef.

Re: Polls not working with SEF (workaround available)

Posted: Wed Jan 07, 2009 5:08 pm
by wwhhing
Any one can help on this? I try create a link component and put in my menu, it still does work.... Try to put the change the code, also same, but once i disable SEO in global setting, the polls working again. What can i do?

Re: Polls not working with SEF (workaround available)

Posted: Mon Mar 02, 2009 5:02 pm
by Lever
This had been bugging me since November 2006... Finally pleased I found this workaround at a time when I urgently needed to get Polls fixed on my site.

Thank you :)