Topic-icon Display problem with system plugin JFBCSystem

Active Subscriptions:

None
Hi.

See this page :
skivosges.net/agenda

When i desactive the system plugin JFBCSystem, the display is correct.

I have the problem with 8.4.6, and always after upgrade to 9.8.181

Regards
The topic has been locked.
Support Specialist
2 years 5 months ago #67576 by alzander
There are some major javascript and HTML formatting issues on that page. In the header section, it seems like the page content starts over again in the middle of a javascript block:
var phtml = '<div class="uk-card uk-card-default uk-padding-remove uk-background-default" style="width:max-content;border-top-left-radius: 5px;border-top-right-radius: 5px;">' +
					(title != '' ? '<div class="uk-text-emphasis">' + title + '</div>' : '') +
					(body != '' ? '<div class="uk-card-body uk-text-secondary uk-padding-small" style="width:max-content">' + body + '</div>' : '') +
					'</div>';
					*/						
					var phtml = '' +
					(title != '' ? title.replace("jevtt_title", "uk-card-title uk-text-emphasis uk-padding-small").replace(/color:#(.*);/,'color:#>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<base href="https://skivosges.net/agenda" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="keywords" content="ski, skis, Ski, Skis, SKI, SKIS, FFS, ffs, F.F.S., vosges, VOSGES, Vosges, Comite, comite, Massif, massif, competitions, resultats, region, Surf, surf, Fond, fond, Alpin, alpin, biathlon, Biathlon, Mulhouse, informations, Informations, portail, Portail, ete, hivers, stations, refuges, refuge, chalet, chalets, teleski, teleskis, marche, randonnée, loisir, Loisir, loisirs, Loisirs, hébergement, montagne, Montagne, neige, Neige" />
		<meta name="description" content="Les sports de glisse en montagne dans Vosges, le site du comité régional du massif des Vosges de la fédération francaise de ski." />
	<title>Agenda</title>

I don't know of any way that JFBConnect would be causing an issue like this, but we'll gladly help investigate. My initial recommendations would be to:
* Disable all caching or optimization extensions on your site.
* Re-order the JFBConnect System plugin so that it's the first ordered plugin to see if that corrects the issue.
* Re-order the JFBConnect System plugin so that it's the last ordered plugin to see if that corrects the issue.

Let us know if that changes the outcome at all and we'll try to figure out the next steps from there to narrow down if and how JFBConnect could cause this.

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

None
Hi.

Thanks for your answer.

I have desactived the cache (only native Joomla cache system).

I put the JFBCSytem plugin at 1st in the system plugin and at last.
Nothing change.

A try to desactivate one by one all system plugin but nothing change.

Only when i desactive JFBSSystem the display are correct.

Have you other ideas ?

Regards.
The topic has been locked.
Support Specialist
2 years 5 months ago #67583 by alzander
That's definitely strange. We'd need to be able to see the HTML on the page before and after the JFBCSystem plugin is enabled to find the location where things seem to be going wrong.

Would you be able to send us administrator credentials for the site so we can investigate further? You can use the Contact Us button at the top of this page to send us an email with the details.

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

None
I send it.

Regards.
The topic has been locked.
Support Specialist
2 years 5 months ago #67591 by alzander
Thanks for sending. I can confirm that disabling the JFBCSystem plugin makes the incorrect head HTML go away. However, I am at a loss as to what could possibly be causing that. It's not an issue we've ever seen before.

Would it be possible to send us FTP credentials as well? With those, we can add some debug code to our plugins to narrow down where the issue is coming from and come up with a solution.

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

None
Sorry Alex.

I don't see you answer.

I send it.

Regards
The topic has been locked.
Support Specialist
2 years 5 months ago #67601 by alzander
Roland,
Thanks for your patience and for sending credentials. We've been investigating further and have found a few issues causing the problem.

First, and foremost, there seems to be something generating bad HTML on your page. If you view the source HTML of the page, and search for "<head", you'll find many instances of it, like:
<li style='list-style:none;margin-top:5px;'><div class='event_legend_name' style='background-color:#33FFFF;color:#000000'><a href='/agenda/evenementsparannee/2021/89' title='Compétition Ski Alpin' style='color:inherit'>Compétition Ski Alpin</a></div><div class='event_legend_desc'><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
and
<li style='list-style:none;margin-top:5px;'><div class='event_legend_name' style='background-color:#CCCCCC;color:#000000'><a href='/agenda/evenementsparannee/2021/103' title='Autres Épreuves (alpin)' style='color:inherit'>Autres Épreuves (alpin)</a></div><div class='event_legend_desc'><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
Each time, the HTML seems to start over with a new html, head and body statement. It happens after what certain events, but I'm unsure why. This could be caused by a template override of whatever is generating those list items or an issue with the agenda extension you're using in general.

This happens whether the JFBCSystem plugin is enabled or not, although the page only looks corrupt when the JFBCSystem plugin is enabled.

I'd highly recommend looking into what's causing the incorrect html, head and body tags as that can cause browser display issues in many different situations.

On top of that, the JFBCSystem plugin performs some modifications of the <head> section of the page. We think we've found a possible issue there, but because there are multiple <head> sections, we're unsure if what we're seeing is an actual problem or not.

Please help investigate what may be causing those extra tags on your page. If you can remove them, we should be able to knock out any issues in the JFBCSystem plugin, if there are any.

I hope that helps explain, but if you need any other details, please let me know.

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

None
Hi Alex.
Thank you for your analysis.
I disabled the JFBC Social Share module on this page, which fixes the display problem.
I am looking to see if the problem with multiple head tags comes from the mod_jevents_legend module since it is on the pages where it is active that the problem occurs.
I keep you informed of the progress.
The topic has been locked.
Support Specialist
2 years 5 months ago #67607 by alzander
Interesting to hear about the Social Share module. That actually does make sense though. The replacements I talked about above in the <head> section are to remove some tags that can automatically get pulled into that section from the body. For example, the intro snippet of an article could have {JFBCLogin} in it.. and that could then be placed in the meta description. Our replacement removes any accidental tags.

By disabling the Social Share plugin, that could remove the tags from entering the head, preventing the replacements and things getting messed up.

Either way, it's better to disable just the social sharing features, for now, than all of JFBConnect.

Definitely keep us posted on what you find out though and we'll gladly help investigate further as necessary.

Thanks,
Alex
The topic has been locked.