How to fix Digg Digg Facebook href URL error!

How to fix Digg Digg Facebook href URL error!

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.

Digg Digg Error
Digg Digg Error
href URL must be absolute
Href URL must be absolute

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.

Digg Digg Error
Click Plugins & Click Edit

Step Two: Now from the right panel click on digg-digg/include/dd-class.php (we need to edit this file).

Digg Digg Error
Click on digg-digg/include/dd-class.php

Step three: Now you’ve to find the code $url = rawurlencode($url);

Digg Digg Error
Find $url = rawurlencode($url);

Step four: Now replace the code with //$url = rawurlencode($url);

Digg Digg Error
Replace with //$url = rawurlencode($url);

Step Five: Now click Update File

Click Update File
Click Update File

Step Six: Now go and refresh your website and see the magic. It’s OK now.

It's fixed
It’s fixed

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.

3 thoughts on “How to fix Digg Digg Facebook href URL error!

  1. […] Now-a-days social sharing plugins are a must. If you add social sharing plugins, your visitors share your website contents with their family and friends which will help you to increase the number of visitors. I really like Facebook Page Promoter Lightbox, Async Social Sharing and Digg Digg (though Digg Digg has a small issue with the encrypted URL, which you can fix from here). […]

Leave a Reply

Your email address will not be published. Required fields are marked *