Topic-icon My login does not work anymore

Active Subscriptions:

None
11 years 11 months ago #44953 by holbus
after almost 1 year it does not work anymore. What to do? www.moclinejo.de
The topic has been locked.
Support Specialist
11 years 11 months ago #44959 by alzander
There's quite a few issues I see with your page:
1) When I run Autotune, the following error is shown:

Test: Facebook Javascript library inclusion
Warn: Another Facebook extension is installed, including the Facebook Javascript library, and may conflict.

I'm not sure what extension is re-adding the Facebook library, but you'll need to determine what's adding the following code and remove it:
<div id='fb-root'></div><script type='text/javascript'>

      // Load the SDK Asynchronously
      (function(d){
      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = '//connect.facebook.net/de_DE/all.js';
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));

    </script>
If you're using sh404SEF, please disable their social sharing plugin. If you're not, I'm not sure what extension is adding that code, but you'll need to determine what's re-adding that code.

2) The HTML on your page is serverly malformed. There are multiple <head> and <body> sections. If you open the HTML on the page, you can find the different sections. I'm not sure what is causing that (it could be a template, module, or component issue), but you'll definitely need to narrow down what's causing the duplicated sections. There should be only one <head> and one <body> tag on the site.

I hope that helps get you started,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 11 months ago #44981 by holbus
I disabled sh404SEF, still not working.....pls help
The topic has been locked.
Support Specialist
11 years 11 months ago #44987 by alzander
That helped remove the extra inclusion of the Facebook Javascript library.

Looking at your page, I see that the Bootstrap Javascript that JFBConnect uses isn't being included as well. Please enable the "Include jQuery / Bootstrap" setting in JFBConnect and that may help.

Beyond that, the problem is likely the re-inclusion of the head and body tags in the page. If you open the HTML, there an additional block of code that looks like:
<img src="/templates/moclinejo5/images/system/printButton.png" alt="Drucken"  /></a> | <a href="/index.php/component/com_mailto/link,49c7697776992923542c1f4a6f68e43847f5eb5d/template,moclinejo5/tmpl,component/lang,de/" title="E-Mail" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;"><img src="/templates/moclinejo5/images/system/emailButton.png" alt="E-Mail"  /></a> | Zugriffe: 611826</div><div class="art-postcontent clearfix"><div class="art-article"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><head><head><head>

<script type='text/javascript'>
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-823128-1']);
	_gaq.push(['_trackPageview']);
	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
</script>
</head></head>
<body><div id="fb-root"></div>
In that block (in the middle of your content) are:
1) A Doctype declaration that should only be in the first line of your page.
2) Another opening <html> tag, when there should only be one on the page.
3) 4 opening <head> tags
4) 2 closing </head> tags
5) Another opening <body> tag

I don't know what's restarting the HTML tags half way through your page, but you'll need to narrow that down. Right before it all starts is a "art-article" class. Whatever extension, plugin or module is generating that div is likely what's causing the page to 'restart'.

You'll need to remove that. Even if the Bootstrap setting above helps get your login functionality working, I'd recommend fixing the restarting of the document as that's very wrong and could cause you search engine issues and plenty of other rendering problems in some browsers.

Thanks,
Alex
The topic has been locked.