Closed (fixed)
Project:
Rate
Version:
7.x-1.0-beta2
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 15:14 UTC
Updated:
18 Sep 2025 at 13:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
zrice57 commentedComment #2
daniel.nitsche commentedLine 18 of rate.js seems to be the problem:
I don't have clean URLs configured, and when the above request is performed, you end up with:
which returns a 404.
As a workaround, changing line 18 of rate.js to:
seems to fix the problem. I don't know how this affects sites that *are* using clean URLs, nor do I know if it's a bad idea to hardcode /?q= so YMMV.
You could also modify line 37 of rate.js from:
return false;to:
return true;which will force the browser to follow the link. This is a untested hack though, and might double up on votes.
Comment #3
mauritsl commentedThanks for the details!
I think always using ?q=... might be a good idea. Although we may not delete the basepath, as that would break the widget when Drupal is installed in a subdirectory.
Comment #4
mauritsl commentedAnother problem can be browser caching (mentioned in #1026230: Not able to vote). Maybe we have to add some headers or have a random number added to the request. For more details see http://drupal.org/node/1026230#comment-4043720
Comment #5
mauritsl commentedThe clean url thing is changed. The widget is now compatible with sites where clean url is disabled. I also added a random number to the request to prevent possible caching issues. Committed to both 6.x and 7.x.
I've tested the rate module on Windows 7 / IE8 and I don't see any other issues causing the widget to malfunction, so I'm setting this issue to 'fixed'.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Comment #6
kvguser commentedNo, it is not fixed.
Doesn't work with IE 8 (version 8.0.6001.19019, latest at this moment).
Works OK with Firefox 3.6.13 (latest at this moment) on the same machine.
Details
======
When I move mouse over a fivestar rate in Firefox, cursor correctly changes to "hand" (link) and a link is shown in the status bar of the browser. When I click, rate changes.
When I move mouse over a fivestar rate in IE, cursor doesn't change to "hand" (link) and no link is shown in the status bar of the browser. Nothing can be clicked.
Most probably JavaScript used is incompatible for IE.
Like it or not - still the most popular browser. So please analyze and fix it.
Tested on:
========
Drupal 7
Rate 7.x-1.0-beta2 (same with Rate 7.x-1.x-dev)
Voting API 7.x-2.4
OS: Windows Vista Enterprise 64 bit, SP2 (latest at this moment)
WAMP: Apache 2.2.11, MySQL 5.1.36, PHP 5.2.11
Comment #7
mauritsl commentedThus it also seems to be an issue on Vista. Only Windows 7 was mentioned before.
There are two possibilities. It can be a JavaScript error, as you suggest, but it's also possible that this is a CSS error. Would you check if the stars are clickable when JS is disabled? If not, it's more likely that this is due to a CSS error.
What theme are you using? And - if applicable - what base theme?
Comment #8
mauritsl commentedIt was also suggested that adding position: relative; to the button fixes this issue, see:
http://drupal.org/node/978056#comment-3769628
Does this help?
Comment #9
kvguser commentedConfirmed that:
1) gets fixed on Vista/IE8 by implementing the suggestion for tweakign the CSS in #8 above ( https://drupal.org/node/1042216#comment-4119144 )
2) The issue is either Vista, or IE8, or IE8 on Vista.
3) Works without the fix on Win XP SP3 with IE7
I suggest you close it, but submit the CSS fix asap in the code.
Comment #10
mauritsl commentedThe position: relative thing was committed to CVS. I have created new releases for both d6 and d7 (6.x-1.1 and 7.x-1.1-beta1).
Since I still haven't found a configuration on which I reproduce this, I leave it up to someone else to set this to fixed.
Thanks everybody for help!
Comment #11
Pintac commentedI've tried the updated version and I can't click on any voting in any of my browsers. IE8, Chrom (latest), FireFox (latest), FireFox (beta 4 b11).
Comment #12
mauritsl commentedThanks for the report.
I have not reproduced the error yet. I'm working to test this on more platforms / browsers.
Can you please provide some more details? What version are you using (D6 or D7) ? And what theme are you using?
Comment #13
Pintac commentedUsing D7 and the theme is Bartik 7.0 and have also tried Seven 7.0, Garland 7.0, and Stark 7.0
Comment #14
mauritsl commentedHmm I have tested it on some machines and was able to reproduce this on WinXP, IE 8.0.6001.18702, D6 / Rate 1.1 on Garland. The widget work fine when using the Acquia Marina theme. The rate.css file is not added on the D6 version. This file includes the position:relative; thing. D7 version using bartik works fine in my case.
The other browsers (on the same Windows machine) are:
Chrome 9.0.597.98
Safari 5.0.2
Opera 11.01
Firefox 3.6.13
Rate widgets are working in all these browsers.
I don't know why the rate.css file is not added. It should have been by the following code:
@Pintac: is the rate.css file added in your case?
Comment #15
Pintac commentedIt's there in the rate folder.
Comment #16
mauritsl commentedYeah, but I meant if it is added inside <head>
Comment #17
Pintac commentedsorry. Just starting out with Drupal. Shows up twice.
<style type="text/css" media="all">@import url("http://pintac.com/dev/drupal/modules/rate/rate.css?lh3rxo");</style>Comment #18
mauritsl commentedTogether with a collegue I rewrote the CSS code a little. View diff here:
http://drupalcode.org/project/rate.git/commitdiff/8c1a610?hp=6dd07091ee6...
Works seemless on WinXP with IE8, FF, Chrome, Safari and Opera and on OS-X with FF, Safari and Opera.
Drupal 6.20 / Rate 1.1 with the following themes:
Acquia Marina 2.0
Fusion 1.0
Garland 6.20
Zen 2.0
Drupal 7.0 / rate 1.1-beta1 with the following themes:
Bartik 7.0
Garland 7.0
Stark 7.0
Zen 7.x-dev
No problems found so far.
Changes are committed to git. New dev snapshot will be available within 12 hours.
Comment #20
vallab444 commentedI installed the module today. There is no click action and no vote is being cast, in both FF 3.6 and IE8....
Comment #21
mauritsl commentedNote that the changes are still not in a release. Please test with the dev snapshot or 1.2 when available.
Comment #22
9802008 commentedThumbs up / down icons were not showing in IE 8 (internet explorer 8), added the following to my theme:
Icons are now visible!
Comment #23
mauritsl commentedWhat doctype did you use before? Or didn't you set a doctype at all?
Comment #24
ivnish