Skip to main content
Participating Frequently
September 10, 2018
Answered

Stray start tag, Template problems

  • September 10, 2018
  • 1 reply
  • 6344 views

Hi there, I'm having an issue with my website. I was running it through the W3 validator and cleaning off all errors, I managed to fix all of the errors on my site (excluding the temporary <br> tags I intend to replace out with margins), except for this one.

  1. Error: Stray start tag script.From line 363, column 21; to line 363, column 28nceEnd --><script>'undef

Now this error leads one to believe that there is content placed somewhere between the </body> and the </html>, and if you look at the coding for the index.html, it is:

</table>

</div>

</body>

<!-- InstanceEnd --></html>

But it isn't in the template:

</table>

</div>

</body>

</html>

Now here's the thing, that <!-- InstanceEnd --> is part of the closing tag of the template I'm using on my site, and when applying the template to any of my pages, it automatically throws that <!-- InstanceEnd --> in between my </body> and </html>, which I assume is giving me the above error (I assume).

If that is the problem, how do I fix it so that it doesn't keep lodging itself between the closing body tag and the closing html tag? If that's not the problem, where should I direct my attention in the coding to fix this last error?

As always, any and all help is greatly appreciated.

Here is the website:

Hydraforge


I'm also aware the footer isn't centered, I'm still working on it.

This topic has been closed for replies.
Correct answer Jon Fritz

Per the note within the code, you need to talk to your hosting company and opt out...

"// Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support."

1 reply

Jon Fritz
Community Expert
Community Expert
September 10, 2018

In the code on the actual page you've linked to, there is a <script> tagset being injected between the ending </body> and </html> tags. Here's the code from the page on the server when I view source in my browser...

</body>
<!-- InstanceEnd --><script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpsh'},{'server':'a2plcpnl0775'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script></html>

That looks like a tracking script is being added by your hosting company.

Hyde1216Author
Participating Frequently
September 10, 2018

That's strange... Is there anyway to stop that from being added in automatically?

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
September 10, 2018

Per the note within the code, you need to talk to your hosting company and opt out...

"// Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support."