2,4 milion likes after update

GK User
Mon Jan 07, 2013 9:19 pm
After I updated the the latest version of the Musicity template all my articles has suddenly gotten liked on Facebook over 2,4 milion times. Which is nice if it had been true but it's not true.

Ex: http://www.fotoforalla.se/artiklar/mer/ ... gen#kmt-86
User avatar
Platinum Boarder

GK User
Mon Jan 07, 2013 10:35 pm
erka wrote:After I updated the the latest version of the Musicity template all my articles has suddenly gotten liked on Facebook over 2,4 milion times. Which is nice if it had been true but it's not true.

Ex: http://www.fotoforalla.se/artiklar/mer/ ... gen#kmt-86


Hi,

Try the solution I found for the same problem I had recently: https://www.gavick.com/forums/publisher ... 21627.html

If my solution works for you and since you do have the same problem, someone should notice the developers about it..

Regards.
User avatar
Senior Boarder

teitbite
Sun Jan 13, 2013 1:58 am
Hi

I'm already taking care of Your issue @erka . In the mater of fack just overwrited files as programmers instructed me than I came across this post. What @leonabil wrote can the source of the problem. I think it all depends on this crl_url variable. I've know some servers has this option disabled and this is probably a problem here. So please do as stated in post refered by @leonabil and replace it.
User avatar
Moderator

GK User
Wed Jan 16, 2013 3:03 pm
What file do I need to edit? I don't have Gavick Social GK5 isntalled on my site.
User avatar
Platinum Boarder

teitbite
Fri Jan 18, 2013 1:02 am
Hi

This fix is not about Social GK5 but to a script in file called displaying articles. Despite of which system are You using it's /html/com_k2/templates/default/item.php or /html/com_content/article/default.php

Just try to find where $cur_url is defined and replace it with one of this:

Code: Select all
$cur_url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];


or

Code: Select all
$cur_url = preg_replace("/%([0-9A-Fa-f]{2})/e", "chr(hexdec('\\1'))", htmlspecialchars($cur_url, ENT_QUOTES, 'UTF-8'));


First one is my idea of a fix but not tested and second is what @leonabil suggested and is proven to be correct.
User avatar
Moderator

GK User
Sat Jan 19, 2013 5:13 pm
Yes that worked! Will this be fixed in the next update?
User avatar
Platinum Boarder

teitbite
Sun Jan 20, 2013 11:18 am
Hi

Let me know which one (mine or leonabil's). So I'll pass this to programmers.
User avatar
Moderator

GK User
Sun Jan 20, 2013 12:53 pm
The second one was it I used and it worked!
User avatar
Platinum Boarder

teitbite
Mon Jan 21, 2013 1:09 am
Hi

Ok. I also have a confirmation from programmers that this problem should already been fixed in newest update.
User avatar
Moderator


cron