Polls not working with SEF (workaround available)
Posted: 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:
[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:
to:
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
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.
[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"); ?>">
Code: Select all
<form name="pollxtd<?php echo $z;?>" method="post" action="index.php?option=com_poll<? echo $_Itemid; ?>">
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