Topic-icon Warn: JFBConnect System plugin is including code 2 times on your page

After update to JFBC 6.5.1 (and now 6.5.2) autotune reports the following error:

Warn: JFBConnect System plugin is including code 2 times on your page. This is usually caused from a mal-formed HTML document with multiple <html>, <head>, and/or <body> tags. This should be investigated and fixed!

There were no such error messages with previous versions of JFBC.

Have spent a great amount of time with investigations into this error. But, didn't find any "double" code in template files so far. Can you help?

Joomla 3.4.6
Jomsocial 4.1.4
Socialize Template (latest) 2.1

Best
Randolph
The topic has been locked.
Active Subscriptions:

None
This is the same problem I have. See my topic "Problem with JFBConnect" of this morning. I did not get a reply yet. Hope this gets solved asap.
The topic has been locked.
Support Specialist
We're looking into this. With 2 reports, it helps us narrow things down further.

Fraley,
One thing I forgot to mention in your other post is to go to the Global Configuration area and set the "Error Reporting" option to 'None'. That should hide the extra notices you're getting. There still will be the extra code on your page, but it shouldn't cause problems. We'll still be working to fix it though.

Randolph,
On your page, I do see an extra inclusion of some JFBConnect features on your page. Search for <SourceCoastProviderJSPlaceholder /> and you'll see a few other similar tags. They honestly shouldn't cause any problems on your site, but it's best to not have them as it indicates something isn't going right. If you could also go through the suggestions I gave Fraley, below, to let me know if any of them help fix the Autotune error, it will help us find a solution quicker as well since we can't recreate this on any of our test sites yet:
* Re-order the JFBCSystem plugin so that it's the first or last plugin in the system group. One of those may help
* Test with a different template to see if that prevents the issue
* Disable all caching - Global Configuration caching and the System - Cache plugin
* Disable any 'optimizations' you may have enabled, either through 3rd party plugins to speed up the page or in your template

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

None
Hi Alex,
I have disabled the error reporting and now the errors are gone and everything seems to work again. I have sent you a PM with the administrator credentials to the site.
Frank
The topic has been locked.
Support Specialist
Frank,

We logged into your backend and found some weird duplication behavior even when all of our JFBConnect plugins are disabled. If you disable JFBConnect authentication, content, system and user plugins, you can still see the duplication.

For example, search for the following and you'll see it repeated:
;/* START: Modals scripts */ var modals_class = 'modal_link'; var modals_defaults = { opacity: '0.8',maxWidth: '95%',maxHeight: '95%',current: '{current} / {total}',previous: 'vorige',next: 'volgende',close: 'sluiten',xhrError: 'Laden van deze inhoud is mislukt.',imgError: 'Laden van deze afbeelding is mislukt.' }; /* END: Modals scripts */

This indicates that it would not be JFBConnect causing the duplication problem. Behavior seems better with JFBConnect system plugin being in the last position, so leave it there while testing.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hi Melissa,
Thanks.

The problems only started after the upgrade to the lates version of JFBConnect (6.5.2). I had no problems before.

I open the SClogin module in a modal popup that is called from a button in a SP Pagebuilder page. It worked without any problem before, do I have no idea what is causing the problem now. Maybe a conflict between SClogin and the SP Pagebuilder modal popup script. I will look into it further and keep you posted.

If I do a JFBConnect Remote Error Check now, there seems to be no problem with the JFBCSystem plugin anymore, by the way.

Frank

I wonder what causes this same problem with Randolph (ranpre).
The topic has been locked.
Support Specialist

The problems only started after the upgrade to the lates version of JFBConnect (6.5.2). I had no problems before.

The problem doesn't really show itself unless you're looking at the HTML on your page. Right now, I see duplicated output for things that are being inserted into the head section. Since this happens when JFBConnect is disabled, the problem isn't from our extension. My guess is that the duplication problem was happening before you updated JFBConnect.

We are still investigating the PHP notices and the Autotune error message to determine what we could be doing to fix that problem. My main point is that there also looks to be a separate issue on your page that could be adding to the problem.

For the JFBConnect issue, moving the plugin to trigger later than other System plugins does seem to fix our problem on your site though. I'd love to hear from Randolph if it fixes your issue as well until we have a more robust solution.

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

None
Hi Alex,

I have installed the new version 6.5.3 and now the double injections are gone. Problem solved I guess. Good work and thanks.

Frank
The topic has been locked.