http request that casts the vote results in 404

bwinett - September 25, 2009 - 22:14
Project:External Link Popularity
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

This is the url that it tries to request:

http://localhost/drupal/pop_links/handle?operation=track_click&url=http%...

#1

bwinett - September 25, 2009 - 23:15
Status:active» closed

Re-opening.

Figured out that you have to set permissions for the visitor (in this case, anonymous) to "record external clicks". But the url still seems to be incorrect. It does not work with the url formed by the JavaScript code (get a 404):

http://localhost/drupal/pop_links/handle?operation=track_click&url=http%...

but it DOES work when I change the url to:

http://localhost/drupal/?q=pop_links/handle&operation=track_click&url=ht...

I'll attach the patch that works for me.

#2

bwinett - September 25, 2009 - 23:16
Status:closed» active

Attached is the patch.

AttachmentSize
pop_links.js_.patch 180 bytes

#3

sicjoy - September 26, 2009 - 10:20

Hi bwinett:

Thanks for catching this and for doing the work. Quick question: are you running without clean URLs? Shame on me for not testing that scenario.

I will get this tested.

Best regards,

sicjoy

#4

bwinett - October 28, 2009 - 04:35

Hello,

Sorry for taking so long to answer your question - I must have missed the email informing me that there was an update to this issue.

Anyway, answer to your question: yes, I was running without clean URL's.

Thanks!

#5

sicjoy - October 29, 2009 - 03:55

Good stuff - will be pushing out an update shortly.

Thanks so much,

sicjoy

 
 

Drupal is a registered trademark of Dries Buytaert.