In testing the Sociable widget I have come across a small bug which means that anyone selecting the StumbleUpon icon will be sent to a 404 page as the url created is slightly incorrect…
At first I thought I must have installed the widget incorrectly, but after checking out other sites I came across the same problem.
After a quick trip to StumbleUpon, I found that the correct format to post stories is:
http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title()
but Sociable incorrectly uses a URL in the form:
http://www.stumbleupon.com/url/PERMALINK
I’ve dropped a note to the author, so hopefully the next release will have this corrected. In the meantime here is how to fix the problem yourself.
Open up the file sociable.php and search for the code:
‘StumbleUpon’ => Array( ‘favicon’ => ’stumbleupon.png’, ‘url’ => ‘http://www.stumbleupon.com/url/PERMALINK’, )
Replace it with the following code (additions highlighted in bold):
‘StumbleUpon’ => Array( ‘favicon’ => ’stumbleupon.png’, ‘url’ => ‘http://www.stumbleupon.com/submit?url/PERMALINK&title=TITLE‘, )
Hope that helps






Entries (RSS)