Warning on my index header...
10-18-2008, 07:16 PM
|
Warning on my index header...
|
Posts: 6
|
I am a complete newbie. There is a function start warning at the top of my sites index page. it says it can not send session cache limiter. ??? Please help. Thanks.
|
|
|
|
10-18-2008, 07:20 PM
|
Re: Warning on my index header...
|
Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
|
You are trying to start a session AFTER output has been sent to the browser.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
10-18-2008, 10:42 PM
|
Re: Warning on my index header...
|
Posts: 6
|
This is what the warning says:
Warning: session_start() [ function.session-start]: Cannot send session cookie - headers already sent by (output started at /home5/allanlan/everything-but-the-bike-www/index.php:1) in /home5/allanlan/everything-but-the-bike-www/shop/squirrelcart/pre_common.php on line 177
Warning: session_start() [ function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home5/allanlan/everything-but-the-bike-www/index.php:1) in /home5/allanlan/everything-but-the-bike-www/shop/squirrelcart/pre_common.php on line 177
How do I fix?
|
|
|
|
10-19-2008, 05:49 AM
|
Re: Warning on my index header...
|
Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
|
put the session_start() before any output is sent to the user agent
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
10-19-2008, 09:24 AM
|
Re: Warning on my index header...
|
Posts: 6
|
here's my html code for the page, can you see any errors?
<?php include 'shop/squirrelcart/pre_storefront.php' ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="title" content="<?php print $Title ?>">
<meta name="keywords" content="<?php print $Keywords ?>">
<meta name="description" content="<?php print $Description ?>">
<script type="text/javascript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
index_06_over = newImage("images/index_06-over.gif");
index_07_over = newImage("images/index_07-over.gif");
index_08_over = newImage("images/index_08-over.gif");
index_09_over = newImage("images/index_09-over.gif");
index_10_over = newImage("images/index_10-over.gif");
preloadFlag = true;
}
}
// -->
</script>
<title><?php print $Title ?></title>
<?php stylesheet("store.css") ?>
<?php include $cart_isp_root.'/storefront_head.php' ?>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style3 { color: #FF9900;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
.style4 {font-size: 14px; font-family: Arial, Helvetica, sans-serif;}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body onLoad="preloadImages();">
<div align="center">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/index_01.gif" width="800" height="28" alt=""></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27%"><a href="http://www.everything-but-the-bike.com"><img src="images/index_02.gif" alt="" width="218" height="95" border="0"></a></td>
<td width="73%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/index_03.gif" width="327" height="29" alt=""></td>
<td><img src="images/index_04.gif" width="255" height="29" border="0" alt="" usemap="#Map"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/index_05.gif" width="12" height="42" alt=""></td>
<td><a href="http://www.everything-but-the-bike.com/shop.php"
onMouseOver="changeImages('index_06', 'images/index_06-over.gif'); return true;"
onMouseOut="changeImages('index_06', 'images/index_06.gif'); return true;"
onMouseDown="changeImages('index_06', 'images/index_06-over.gif'); return true;"
onMouseUp="changeImages('index_06', 'images/index_06-over.gif'); return true;"><img name="index_06" src="images/index_06.gif" width="129" height="42" border="0" alt=""></a></td>
<td><a href="shop/store.php"
onMouseOver="changeImages('index_07', 'images/index_07-over.gif'); return true;"
onMouseOut="changeImages('index_07', 'images/index_07.gif'); return true;"
onMouseDown="changeImages('index_07', 'images/index_07-over.gif'); return true;"
onMouseUp="changeImages('index_07', 'images/index_07-over.gif'); return true;"><img name="index_07" src="images/index_07.gif" width="128" height="42" border="0" alt=""></a></td>
<td><a href="http://www.everything-but-the-bike.com/events.php"
onMouseOver="changeImages('index_08', 'images/index_08-over.gif'); return true;"
onMouseOut="changeImages('index_08', 'images/index_08.gif'); return true;"
onMouseDown="changeImages('index_08', 'images/index_08-over.gif'); return true;"
onMouseUp="changeImages('index_08', 'images/index_08-over.gif'); return true;"><img name="index_08" src="images/index_08.gif" width="104" height="42" border="0" alt=""></a></td>
<td><a href="http://www.everything-but-the-bike.com/boards" target="_blank"
onMouseDown="changeImages('index_09', 'images/index_09-over.gif'); return true;"
onMouseUp="changeImages('index_09', 'images/index_09-over.gif'); return true;"
onMouseOver="changeImages('index_09', 'images/index_09-over.gif'); return true;"
onMouseOut="changeImages('index_09', 'images/index_09.gif'); return true;"><img name="index_09" src="images/index_09.gif" width="94" height="42" border="0" alt=""></a></td>
<td><a href="http://www.everything-but-the-bike.com/links.php"
onMouseOver="changeImages('index_10', 'images/index_10-over.gif'); return true;"
onMouseOut="changeImages('index_10', 'images/index_10.gif'); return true;"
onMouseDown="changeImages('index_10', 'images/index_10-over.gif'); return true;"
onMouseUp="changeImages('index_10', 'images/index_10-over.gif'); return true;"><img name="index_10" src="images/index_10.gif" width="115" height="42" border="0" alt=""></a></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/index_11.gif" width="336" height="24" alt=""></td>
<td><img src="images/index_12.gif" width="246" height="24" alt=""></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="793" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="padding-top: 3px;"><?php
// Left Navigation section
show_nav("Left Navigation");
?> </td>
<td width="100%" valign="top"><table width="100%" border="0">
<tr>
<td style="padding-bottom: 3; padding-top: 0"><table width="59%" border="0" align="center">
<tr>
<td style="padding-bottom: 3; padding-top: 0"><span class="style3"><br>
Welcome to Everything But The Bike <br>
</span>EVERYTHING BUT THE BIKE specializes in parts, apparel and accessories for today’s sportbike rider.
<br>
<tr>
<td class="content"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','388','heigh t','238','src','flash/logopromo','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/logopromo' ); //end AC code
</script>
<noscript>
<object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="388" height="238">
<param name="movie" value="flash/logopromo.swf">
<param name="quality" value="high">
<embed src="flash/logopromo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="388" height="238"></embed>
</object>
</noscript></td>
</tr>
<tr>
<td class="content">
<tr>
<td valign="top" class="content"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27%"><div align="right">We Accept: </div></td>
<td width="73%"><img src="images/cclogos.gif" width="226" height="35"></td>
</tr>
</table>
</div></td>
</tr>
</table>
<tr>
<td class="content"><div align="center"><br>
<a href="http://www.marableinc.com" target="_blank"><img src="images/minclogo.jpg" width="85" height="47" border="0"></a></div></td>
</tr>
</table>
<br /> </td>
<td valign="top" style="padding-top: 3;"><br>
<?php
// Right Navigation section
show_nav("Right Navigation");
?> </td>
</tr>
</table></td>
</tr>
<tr>
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','800','heigh t','84','src','shop/sc_flash/logo_footer','quality','high','pluginspage','https ://www.macromedia.com/go/getflashplayer','movie','shop/sc_flash/logo_footer' ); //end AC code
</script><noscript><object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="84">
<param name="movie" value="shop/sc_flash/logo_footer.swf">
<param name="quality" value="high">
<embed src="shop/sc_flash/logo_footer.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="84"></embed>
</object></noscript></td>
</tr>
</table>
</div>
<?php
// This is a link back to Squirrelcart.com. You can change the appearance of the link on the Visual Settings page in the control panel
//squirrelcart_link();
// This line must go directly before your closing body tag
include $SC['cart_isp_root'].'/post_storefront.php';
?>
<map name="Map"><area shape="rect" coords="15,7,67,27" href="http://www.everything-but-the-bike.com/index.php">
<area shape="rect" coords="79,8,138,32" href="http://www.everything-but-the-bike.com/contact.php">
<area shape="rect" coords="152,8,229,32" href="http://www.everything-but-the-bike.com/list.php">
</map>
</body>
</html>
|
|
|
|
10-19-2008, 09:36 AM
|
Re: Warning on my index header...
|
Posts: 6
|
|
|
|
|
10-19-2008, 12:39 PM
|
Re: Warning on my index header...
|
Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
|
the error is in shop/squirrelcart/pre_storefront.php is the only thing I can tell you
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
10-19-2008, 01:43 PM
|
Re: Warning on my index header...
|
Posts: 6
|
Fixed!!! There was a blank space on my first line. Thanks!
|
|
|
|
|
« Reply to Warning on my index header...
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|