Topic-icon Update system 6.2.2 plugin error

Active Subscriptions:

None
11 years 8 months ago - 11 years 8 months ago #47582 by crazymike
Hi,
after updating to 6.2.2 autotune-check give me message JFBConnect System plugin is including code 2 times on your page. This issue crash my template. Whats the error, 6.1 plugin works nice? I use jqueryeasy plugin too. Check it pls.

Regards
Micha
Last edit: 11 years 8 months ago by crazymike.
The topic has been locked.
Support Specialist
11 years 8 months ago #47585 by alzander
There is definitely issues with the HTML on the page, but I'm not seeing how JFBConnect is causing the problem.

Can you disable the JFBCSystem plugin to see if the problem persists? If so, it means that JFBConnect is not the cause of the HTML issues on the site.

The issue seems to be that the following Javascript is inserted on the page, and then, the HTML restarts at the beginning of the page:
jQuery(document).ready(function(c){function d(){var a=c(".jf_js_sticky_toolbar"),b=c(".jf_js_sticky_cont"),f=c(".jf_js_sticky_block");c(window).scroll(function(){if(c(this).scrollTop()>400){a.addClass("jf_js_menu_fixed");b.addClass("rt-container");f.addClass("rt-block")}else{a.removeClass("jf_js_menu_fixed");b.removeClass("rt-container");f.removeClass("rt-block")}})}d()});
jQuery(document).ready(function(c){(function(d){d.extend(d.fx.step,{backgroundPosition:function(j){if(j.state===0&&typeof j.end=="string"){var h=d.curCSS(j.elem,"backgroundPosition");h=k(h);j.start=[h[0],h[2]];var g=k(j.end);j.end=[g[0],g[2]];j.unit=[g[1],g[3]]}var i=[];i[0]=((j.end[0]-j.start[0])*j.pos)+j.start[0]+j.unit[0];i[1]=((j.end[1]-j.start[1])*j.pos)+j.start[1]+j.unit[1];j.elem.style.backgroundPosition=i[0]+" "+i[1];function k(e){e=e.replace(/left|top/g,"0px");e=e.replace(/right|bottom/g,"100%");e=e.replace(/([0-9\.]+)(\s|\)|$)/g,">

					<meta name="viewport" content="width=device-width, initial-scale=1.0">
That blank line should have a closing script tag and the meta viewport line (and all content below that) has already been inserted higher up on the page.

Please let me know if the HTML gets cleared up properly when disabling our plugin and leave it that way. We'll gladly investigate further.

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

None
11 years 8 months ago - 11 years 8 months ago #47588 by crazymike
Reinstalled 6.1 systemplugin and it works. The last line looks like this e=e.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2"); wehre to add the closed tag?

Regards
Micha
Last edit: 11 years 8 months ago by crazymike.
The topic has been locked.
Support Specialist
11 years 8 months ago #47597 by alzander
That Javascript isn't from JFBConnect. I'm not sure what code that is coming from.

When you installed JFBConnect v6.1, that fixed the problem? Did you test the other things I asked above as well, as that information is what's most important to determine what may be happening in the 6.2 release. Mainly, can you:
* Try re-ordering the JFBCSystem plugin to the top or bottom positions to see if that helps
* Switch the template to a different one to see if the problem goes away.

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

None
11 years 8 months ago - 11 years 8 months ago #47605 by crazymike
Yes reinstalling systemplug ver. 6.1 fix it. Tried to find a solution with templatedeveloper but no success. He think JFBC 6.2.2 has some codes for default theme which dont applies to other js themes. With standard joomla template error has gone. Does JFBC 6.2.2 has something special features for default jomsocial theme? maybe special tags?

Greetz
Micha
Last edit: 11 years 8 months ago by crazymike.
The topic has been locked.
Support Specialist
11 years 8 months ago #47615 by alzander
Micha,
If it's related to the template, it likely means something strange is happening in the HTML when that template is enabled. It could be caused by the template or could be from a module or other extension that only functions while that template is enabled.

There's no special template logic in our extension at all.

The main things I'd check are:
* Try re-ordering the JFBCSystem plugin to the top or bottom positions to see if that helps
* Disable the JFBCSystem plugin and check what's happening around that last bit of Javascript code on the page. Make sure there are no extra <body>, <html> or <head> tags or anything else out of the ordinary in that section.

Beyond that, we'd need to see the page without JFBConnect enabled to understand what could be causing the problem, but hopefully, the above check will make something more clear for us.

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

None
11 years 8 months ago - 11 years 8 months ago #47628 by crazymike
THX we solved it ^^

Regards
Micha
Last edit: 11 years 8 months ago by crazymike.
The topic has been locked.
Support Specialist
11 years 8 months ago #47658 by alzander
I'm confused as to what's happening there. There's nothing where the Javascript stops and restarts that seems out of the ordinary.

From here, can you please:
* Leave JFBConnect v6.2 installed
* Private Message me admin *and FTP* credentials for your site
We'll need to investigate what's going on and having FTP credentials will allow us to make minor modifications to our code to test further.

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

None
11 years 8 months ago - 11 years 7 months ago #47681 by crazymike
Send you datas to dev server. But fixed last module now and it goes. You can use the server and do changes back to see whats wrong (solution sent by PM). I thinkt thats not normal because this is no fealure by templatecode in my opinion.

Kind Regards
Micha
Last edit: 11 years 7 months ago by crazymike.
The topic has been locked.