Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

blank line before the DOCTYPE oscommerce 2.3


sexyglamour

Recommended Posts

Hello to all the community.

A blank line appears in the code before the DOCTYPE definition in oscommerce 2.3, as is logical in all the pages.

I have installed some contributions. Ultimate_Seo_Urls_5_PRO, otf autothumb..

I checked everything but I did not question after many hours.

I would appreciate any help, the page is http://www.sexyglamour.net where you can see the source code.

 

A greeting for all

Juan

Link to comment
Share on other sites

Your RSS feeder is broken; it should ignore blank lines.

 

The blank is probably in includes/template_top.php. Look just above the Doctype line.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Thank you very much Jim,

is the first thing I looked but there should not be the problem.

I have also reviewed application_top.php

But I can not find the bug database perhaps dynamically included in the header of the document type???

Below I include the header of template_top.php

A greeting

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2010 osCommerce

 

Released under the GNU General Public License

*/

 

$oscTemplate->buildBlocks();

 

if (!$oscTemplate->hasBlocks('boxes_column_left')) {

$oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());

}

 

if (!$oscTemplate->hasBlocks('boxes_column_right')) {

$oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /><?php include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?><base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />

...

Link to comment
Share on other sites

It isn't there, so it has to be in one of the included files. Look at all of the files included in application_top.php. It's probably a blank line before the first <?php or after the ?> at the end of one of those files.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Sexyglamour,

 

Hi, Did you find your blank line? I noticed some while ago that this was happening in 2.3.1. After spending a lot of time searching, I gave up and just assumed that it something that I had caused.

 

If you did find it, what caused it?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...