"Error" message? - Code Change?
flufftronix - September 18, 2005 - 05:01
| Project: | Voting |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | benshell |
| Status: | active |
Jump to:
Description
I'm not sure what's going wrong, but where the module usually would display "Poor", "Average" etc., it says error, and will not save anything to the database. Stars show up just fine, no MYSQL error messages. Example
help?

#1
I am experiencing the same/similar problem...
1. base drupal install
2. add voting module
3. create a node with voting attached
The node_voting table is populated, but the votes table had no values and the 'Stars' display shows the message "Error" when the mouse enters the star region.
Possibly this is because I am trying to make it work on my development PC - a simple Mysql, php, Apache, Windows XP install. Perhaps there is something that needs to be setup for shockwave to work properly?
#2
I developed the voting module using a Windows XP, Apache, PHP, and MySQL system, so that shouldn't be a problem. However, I just thought of something that might be the problem (I haven't got a chance to test it yet)... are you using clean URLs? If not, the Flash file won't be able to access the URL 'voting/flash'. However, I'm pretty sure I made that a variable that is passed to the Flash file, so it shouldn't be too hard to fix.
#3
I just enabled mod_rewrite and set 'clean URLs'.
Voting works correctly now! Thanks for the tip.
#4
I'm glad that worked. Obviously I need to make the voting module work without clean URLs, so I'll try to get back to this sometime next week. Thanks for your patience.
#5
That would be excellent.. although I need to enable clean URLs anyways, it should still work with both preferably.
Otherwise, add a note to the documentation.
#6
My ISP does not have Mod_Rewrite support, so I cannot enable Clean URL's.
I've reviewed the script in flash and would like to know if can make the change.
I'm not an expert programmer, but could make the change if given direction.
Is this where the change can be made?
Line 93: voteData.sendAndLoad(url + "?rnd="+random(999),voteData,"POST");
Would appreciate any advice.
Thanks!
#7
since there is no further reply to this, i just wanted to ask if the module code had been fixed in order to work w/out clean urls...
thnk you!