I’s trying to post an article on How to backup & restore your SMS in Android phone, and suddenly after posting, I found that my Digg Digg floating social bar is acting wired. In the Facebook like section, it’s showing an error like the picture below.
Yeah, I know it’s pretty seems pretty bad that on your post you see an error. So I looked inside the code of the plugin and found the problem. So I’m trying to explain the matter to you and give a solution to the problem.
The Digg Digg plugin usually encodes your URL, and that’s the problem here. Well if you need to know why they encode the URL, W3Schools says
URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. URL encoding replaces unsafe ASCII characters with a “%” followed by two hexadecimal digits. URLs cannot contain spaces. URL encoding normally replaces a space with a + sign.
So, what we have to do is just make the plugin not encode your URL. To do that, just follow the steps. And if you can’t do that, you’ll find a link below to download the edited version of the plugin.
Step One: Go to Plugins & click Edit to edit the Digg Digg plugin.
Step Two: Now from the right panel click on digg-digg/include/dd-class.php (we need to edit this file).
Step three: Now you’ve to find the code
$url = rawurlencode($url);
Step four: Now replace the code with
//$url = rawurlencode($url);
Step Five: Now click Update File
Step Six: Now go and refresh your website and see the magic. It’s OK now.
Now, if you think you cannot change it, you can download the plugin from here and install it.
So, that’s it for the problem. I hope it’ll work for you. If you like my post of blog, please like & share.