Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank lines in html code with Header Tags Controller


zteger

Recommended Posts

hi,

 

since i installed Header tags Controller 2.5.5, there are blank lines between <head> and <title> in my html code, see exemple :

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="fr">

<head>

 

 

 

 

 

 

 

 

 

 

 

<title>

 

There are 11 blank lines (11 "CRLF"), and i can't see how this can happen ??

 

The code changed with Header Tags is as follow in "index.php" :

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<?php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

<title><?php echo TITLE; ?></title>

<?php

}

?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

 

If i rename "header_tags.php" (for it goes through "<title><?php echo TITLE; ?></title>"), there's 1 blank line between <head> and <title>.

 

Of course, my pages are posted correctly, but that's not clean at all, and i wonder if it might disturb robots ...

 

Hows could i correct this ?

 

I ran MS2Fr, on php 4.4.1

 

Thanks for your answers.

zteger

Link to comment
Share on other sites

It won't cause any problems but it is not the way the code works either. The title and meta tags code comes from the includes/header_tags.php file. Somehow, it would seem, there has been some extra code added to it. Of course, it could be elsewhere in the files but that is the most likely place.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Yes !! "Of course, it could be elsewhere in the files" makes me think that i modified my includes/languages/french/header_tags.php file. That file was ... say, strange : with lots of blank lines between lines of code. I made another file, and that's it : it works !!

 

Thanks for you answer Jack_mcs.

 

zteger

 

 

It won't cause any problems but it is not the way the code works either. The title and meta tags code comes from the includes/header_tags.php file. Somehow, it would seem, there has been some extra code added to it. Of course, it could be elsewhere in the files but that is the most likely place.

 

Jack

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...