Polls not working with SEF (workaround available)

User avatar
Paddy Landau
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 105
Joined: Mon Apr 10, 2006 7:57 pm
Contact:

Polls not working with SEF (workaround available)

Postby Paddy Landau » Mon Jan 08, 2007 1:05 pm

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

outlawpolyester
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Dec 12, 2006 11:04 pm

Re: Polls not working with SEF (workaround available)

Postby outlawpolyester » Wed Jun 06, 2007 10:13 pm

thanks, fix works great

urbangranolagirl
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Nov 28, 2006 6:30 pm

Re: Polls not working with SEF (workaround available)

Postby urbangranolagirl » Tue Jun 12, 2007 8:14 pm

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?

nafets7ro
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Dec 10, 2006 9:05 am

Re: Polls not working with SEF (workaround available)

Postby nafets7ro » Fri Jul 06, 2007 10:34 am

worked for me ... many thanks  :D

User avatar
Paddy Landau
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 105
Joined: Mon Apr 10, 2006 7:57 pm
Contact:

Re: Polls not working with SEF (workaround available)

Postby Paddy Landau » Sun Jul 08, 2007 8:09 am

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?

cmosses
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Mar 26, 2008 10:11 am
Contact:

Re: Polls not working with SEF (workaround available)

Postby cmosses » Sat Mar 29, 2008 6:47 am

Has this been fixed in Joomla! 1.0.15?

Thanks.

User avatar
ddp
Joomla! Explorer
Joomla! Explorer
Posts: 319
Joined: Thu Jun 01, 2006 12:35 am
Location: Toronto
Contact:

Re: Polls not working with SEF (workaround available)

Postby ddp » Mon Apr 28, 2008 6:13 pm

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?

User avatar
ddp
Joomla! Explorer
Joomla! Explorer
Posts: 319
Joined: Thu Jun 01, 2006 12:35 am
Location: Toronto
Contact:

Re: Polls not working with SEF (workaround available)

Postby ddp » Mon Apr 28, 2008 6:23 pm

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

wwhhing
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 05, 2009 5:49 am

Re: Polls not working with SEF (workaround available)

Postby wwhhing » Mon Jan 05, 2009 11:08 am

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.

wwhhing
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 05, 2009 5:49 am

Re: Polls not working with SEF (workaround available)

Postby wwhhing » Wed Jan 07, 2009 5:08 pm

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?

User avatar
Lever
Joomla! Explorer
Joomla! Explorer
Posts: 295
Joined: Thu Nov 17, 2005 11:56 pm
Location: UK
Contact:

Re: Polls not working with SEF (workaround available)

Postby Lever » Mon Mar 02, 2009 5:02 pm

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 :)
http://www.is4profit.com ~ UK Small Business Advice & News
http://www.everythingsgonegreen.co.uk ~ Green News & Views


Return to “Joomla! 1.0.x_Q&T”

Who is online

Users browsing this forum: No registered users and 2 guests