Topic-icon 4.3.0 showing html in head

Active Subscriptions:

None
11 years 4 months ago #28026 by paz
After upgrading to 4.3.0 Ive noticed that twitter and google+ like widgets are being rendered in the head tags so now the template skin is breaking somewhat.

Ive been going through my social modules and removing them, removing caching, turning off anything I can find to isolate where this comes from. It started on upgrade to 4.3.0 and I can see the following HTML in my head tag which looks like JFB:
Tweet{SCGooglePlusOne href=http://w..." />
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #28027 by paz
Replied by paz on topic 4.3.0 showing html in head
Ok, when K2 likes are using view setting = both on the K2 item, this is when twitter and G+ show up in the head tag. If set to top or bottom, this does not happen.

Second problem is Facebook like buttons no longer display no matter what I do....

Third problem is sh404sef social buttons. The autotune says to turn that off, but when I do that, the facebook login button no longer works. Rather odd. Plus I want the pinterest buttons for the sh404 social buttons, so I prefer to keep it on :-)

p.
The topic has been locked.
Support Specialist
11 years 4 months ago #28040 by alzander
Replied by alzander on topic 4.3.0 showing html in head
The Like button being hidden is a silly CSS issue we introduced. It will be fixed in the 4.3.1 release (later this week). In the meantime, you can fix by making the following change from the thread below:
www.sourcecoast.com/forums/jfbconnect/jf...tton-gone?p=1#p27937

The sh404SEF social plugins re-includes the Facebook Javascript library. That can cause conflicts because they intialize the Facebook functions in a very 'basic' way. Depending on the browser and load-order of the page, that can overwrite our initialization and prevent features like the Login With Facebook button from working. Feel free to test with them both enabled, and it may work. We'd still recommend disabling it though. The Pinterest button (and a method to add your own custom code) is something we're hoping to have in the next big release.

When you disalbe the social features and the Login button stops, what happens? Is it not showing, is there an error, some other information you see? Again though, if it works with the sh404SEF plugin on, then that may be ok :)

Finally, for the "both" setting, we'll have to look into that some more. I've added the issue to our bug-tracker. Is this critical for you right now, or something you can live with for the time being?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #28051 by paz
Replied by paz on topic 4.3.0 showing html in head
Hi Alex,

Thanks for the input. I've disabled sh404 social plugs and now the facebook login isnt working and the logout button isnt working either (if I use a normal site login).

When you click the fb login, you get the popup. Once you enter your details, the popup closes and nothing happens. If you refresh the page, you are still not logged in, but then when you wait a few moments you get the popup "you are now being logged in".

This is concurrent with a behaviour I see with users who register on my site but dont see themselves in the chatroom (which is pulling the login details from joomla).

Not sure if you remember, we discussed this in an old thread and you gave me a workaround. That was many versions ago and I since never reimplemented it. Now were back to the old behaviour. I'll try and dig up that thread and post it here.
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #28052 by paz
Replied by paz on topic 4.3.0 showing html in head
Here it is:
www.sourcecoast.com/forums/jfbconnect/jf...-working-immediately

So the behaviour is back to the way it used to be, perhaps changes in FB jscript? My desired function is that users can be logged into the site when arriving, if theyve explicitly registered previously and accepted the facebook permissions. Until 4.3 this was pretty much working (although not consistently across all users, but it worked for most).
The topic has been locked.
Support Specialist
11 years 4 months ago #28066 by alzander
Replied by alzander on topic 4.3.0 showing html in head
The issue now is different than the older one you were having. Basically, right now, you have multiple Javascript errors on your page that I believe are preventing our Javascript from working:
1) You're double-tracking FB Like clicks in Google Analytics. In your HTML, you have the following call:
FB.Event.subscribe('edge.create',function(href,widget){_gaq.push(['_trackEvent','facebook','like','href']);});</script> </head><body data-tablet-width="940" data-mobile-width="580"><div id="fb-root"></div> <script type="text/javascript">
However, the FB element hasn't been created by JFBConnect when this is called. JFBConnect already has the tracking built-in (and enabled on your site), so you should remove that call however it's being added.
2) Multiple other JS errors that I'm not sure where they're coming from:
Uncaught TypeError: Object [object Window] has no method 'addEvent' www.inthemix.me:4
GET https://www.inthemix.me/plugins/system/azrul.system/pc_includes/ajax_1.5.pack.js  
Uncaught ReferenceError: Fx is not defined www.inthemix.me:13
Uncaught ReferenceError: $GKMenu is not defined jscss.php:39
Uncaught TypeError: Cannot read property 'news_column' of undefined jscss.php:44
Any of those could be 'blocking' Javascript errors, meaning that other Javascript (like our Login functionality) won't be executed.

You'll need to narrow down the cause of those. I'd start by disabling JCH optimize and any caching to see if it's some optimization causing problems. Then go from there.

Hope that helps, but if not, let us know!

Thanks,
Alex
The topic has been locked.