Topic-icon Social Extension and other extension (Chatbox)

Active Subscriptions:

None
12 years 3 months ago #41709 by srushlo
Anyone that can help,

Our chat box we’re currently using is storejoomla.org/extensions/jchatsocial_professional.html . When using this social extension and it is in the published position it causes direct glitching with our chatbox. The only to get the chat box to operate is to refresh the browser or un-publish the social extension.
The topic has been locked.
Support Specialist
12 years 3 months ago #41715 by alzander
Sorry you're having trouble. There's a few things on your site that I can see that may be causing problems, and a few recommendations I'd have to narrow things down..

First, I tried to go to your site (site.com/gr4, the last you ran Autotune from). I couldn't see any issues there, but it looks like our JFBCSystem plugin is currently disabled, so I'm assuming there aren't any issues to see right now. Without being able to 'see' the glitches, it's hard to give an exact cause.

What I would recommend is:
1) Disabling the RokBooster plugin. It's not known to cause any problems, but compressing Javascript files can cause them to produce errors. Errors in unrelated parts of your code, can cause other things to 'glitch'.
2) Looking through what RokBooster is compressing for your Javascript:
a) jQuery Migrate is being loaded twice. This re-instates some old jQuery functionality, but should not be loaded twice.
b) You're loading Mootools twice. v1.4.5 and v1.4.0. Mootools should never be loaded twice on a page, and can cause multiple Javascript issues

2 may be harder to diagnose, and may not even be related, but it should definitely speed up page load times and improve compatibility in general. If neither helps though, please leave RokBooster disabled and re-enable the JFBCSystem plugin. That will help us to actually see the problem and diagnose where things may be going wrong.

Also, as for the 'glitching', if you could explain any more about what's going wrong, that may help. We don't know your site, so may miss something that's completely obvious to you (ie, do we need to type in the box, hit 'send', etc or just sit on the page and it will flash)?

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

None
12 years 3 months ago #41743 by srushlo
Alex, we don't have RokBooster. I'm also not a Joomla guru! Where can I locate this Mootools you specify above?

Thanks,
Shane
The topic has been locked.
Support Specialist
12 years 3 months ago #41754 by alzander
If you open the HTML on your page, the following files are being loaded:
/gr4/cache/rokbooster/fb244a27b60364498c14c84b8a430f1f.php (a compressed file of all of your CSS)
/gr4/cache/rokbooster/d4edb72e70e0da9a130f40db6ad3c6d9.php (a compressed file of all the Javascript)

Those files are definitely from the RokBooster plugin, which is distributed with RocketTheme templates. When all the files are compressed together, it's very difficult to debug issues like you're having. Please disable that plugin, and we can look further.

As for Mootools, I'm not sure what's loading that. Every extension can load their own files and do what they want. Mootools is a Javascript library, like jQuery. However, it's not used as much in Joomla anymore. Generally, any extensions that load libraries like Mootools or Javascript have (or at least should have) an option to not load Mootools. Hopefully, whichever extension(s) are loading it have an option to disable at least one copy so that you aren't loading it twice.

I hope that helps get you started.

Again, for us to debug, the best thing would be:
* Disabling RokBooster
* Enabling the JFBCSystem plugin (so the conflict is present)
* Explaining what we should be looking for with the 'glitching'.

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

None
12 years 3 months ago #41766 by srushlo
Alex, my mistake, we located Rokbooster and shut it off. Then published your plugin but it didn't fix the issue. We are still looking into this mootools! I will keep you updated..
The topic has been locked.
Active Subscriptions:

None
12 years 3 months ago #41768 by KippG
Alex,

I located mootools bundled in the Gantry library files as well as RokGallery so I have disabled the RokGallery for now.

The problem we encounter is that when JFBConnect is enabled the JSocialChat is not displaying any chat text typed by yourself without manually refreshing the chat box. You can see another users text but not yours. Its the same for the other user as well. They will see your chat text but not their own.
The topic has been locked.
Support Specialist
12 years 3 months ago #41769 by alzander
Ahhh.. much easier to see the code on the page now. Notes:
1) Mootools isn't being loaded twice, it's 2 different parts of Mootools (Mootools Core and Mootools More). That's common on J2.5 sites. I don't know what's enabling them, and I'd just say to ignore it for now as an issue to investigate.
2) JQuery is being loaded twice.. once by K2, once by the Chat module. I would recommend *trying* to:
a) Re-order the JChat system plugin to be a lower number / before the K2 system plugin
b) Go into the K2 admin area, click parameters or options and set it to not load jQuery in the front-end
That, again, likely won't fix the issue.. but one less inclusion of jQuery is a good thing.

As for the JChat issue, when I try to create a post in the "Group Chat", nothing appears. When I reload the page, it does appear. I'm assuming that's what you mean you say "glitchy", but still not sure.

I don't see the exact cause of the problem, but when I submit, the following Javascript error appears in the console:
Uncaught TypeError: Cannot read property 'status' of undefined main.js:384
(anonymous function) main.js:384
c jquery.js:3
p.fireWith jquery.js:3
k jquery.js:5
r
The main.js file is from JChat. They may be able to help diagnose that further (or know of issues/conflicts with Facebook integration). It wouldn't hurt to pass the question by them to see if they know what's going on with that error message, at least.

One thing you can try in JFBConnect is to enable the "Include jQuery / Bootstrap" setting in our configuration area. It will load a very specific jQuery compatibility layer that should make JFBConnect less visible to other Javascript heavy extensions. It's worth a shot at least.

I hope that helps make some progress.. bug again, please confirm if the issue with the JChat box is what you're actually seeing or not.

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

None
12 years 3 months ago #41770 by srushlo
Thanks Alex!!! We will look into this and get back to you!
The topic has been locked.
Support Specialist
12 years 3 months ago #41780 by alzander
One other thing that just crossed my mind. You're using JFBConnect v5.2.2. There was a really specific bug in that release that was causing some AJAX issues with JReviews (another Joomla extension). It was only under certain circumstances and with JReviews only (that we knew of).

It's possible the same conflict is occurring between JFBConnect and JChat. The v6.0.1 release of JFBConnect fixed that conflict, but I don't know if it will be the fix for your problem.. but worth a try, if you're ok with upgrading. It should be a pain free process..

Let me know how everything is going. The next step would be to ask for admin credentials for your site to see if we can narrow things down further.. but the v6.0.1 upgrade and asking the JChat team for help are likely the best options at this point.

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

None
12 years 3 months ago #41953 by srushlo
No luck Alex!!! Now i'm getting this message:

"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
The topic has been locked.