Cannot Modify Headers
3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 24, 2010 (RSS)
By Active1965 - March 24, 2010
Hi Guys
I pasted to much code in my last post. Here is the error and the code.
I have been at this for hours and keep getting this error.
Thanks
Warning: Cannot modify header information - headers already sent by (output started at /home/k7mmg8tt/public_html/demo/underfloor_photos.htm:7) in /home/k7mmg8tt/public_html/demo/underfloor_photos.htm on line 79
Warning: Cannot modify header information - headers already sent by (output started at /home/k7mmg8tt/public_html/demo/underfloor_photos.htm:7) in /home/k7mmg8tt/public_html/demo/underfloor_photos.htm on line 93 Record not found!
<html>
<head>
<title></title>
<link rel="stylesheet" href="css.css" type="text/css">
<link rel="stylesheet" href="css2.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<style type="text/css">
body { font-family: arial; }
.instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}
</style>
</head>
<body style="background: url(bg.jpg) fixed;" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<table width="980" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" class="bordermain">
<tr>
<td colspan="4" height="185" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="980" height="112" valign="top"><img src="boilers_r1_c1.jpg" width="980" height="112" alt="Pellet Boiler Solar Heating Systems"></td>
</tr>
<tr>
<td height="25" valign="top"><img src="boilers_r2_c1.jpg" width="426" height="23"><a href="index.htm"><img src="boilers_r2_c5.jpg" width="76" height="23" alt="Home" border="0"></a><a href="downloads.htm"><img src="boilers_r2_c7.jpg" width="105" height="23" alt="Downloads" border="0"></a><a href="grants.htm"><img src="boilers_r2_c9.jpg" width="90" height="23" alt="Grants" border="0"></a><a href="photo_gallery.htm"><img src="boilers_r2_c11.jpg" width="115" height="23" alt="Photo Gallery" border="0"></a><a href="contact_us.htm"><img src="boilers_r2_c13.jpg" width="168" height="23" alt="Contact Us" border="0"></a></td>
</tr>
<tr>
<td height="48" valign="top"><a href="pellet_boiler_systems.htm"><img src="boilers_r3_c1.jpg" width="160" height="48" alt="Pellet Boilers" border="0"></a><a href="gas_boilers.htm"><img src="boilers_r3_c2.jpg" width="148" height="48" alt="Gas Boilers" border="0"></a><a href="oil_boilers.htm"><img src="boilers_r3_c4.jpg" width="140" height="48" alt="Oil Burners" border="0"></a><a href="heat_recovery_systems.htm"><img src="boilers_r3_c6.jpg" width="132" height="48" alt="Heat Recovry" border="0"></a><a href="solar_power_systems.htm"><img src="boilers_r3_c8.jpg" width="86" height="48" alt="Solar Systems" border="0"></a><a href="heating_controls.htm"><img src="boilers_r3_c10.jpg" width="89" height="48" alt="Heating Controls" border="0"></a><a href="underfloor_heating_systems.htm"><img src="boilers_r3_c12.jpg" width="104" height="48" alt="Underfloor Heating" border="0"></a><a href="grants.htm"><img src="boilers_r3_c14.jpg" width="121" height="48" alt="Grants" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="222" valign="top" rowspan="3">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="222" height="9"></td>
</tr>
<tr>
<td height="168" valign="top">
<table width="75%" border="0">
<tr>
<td><a href="grants.htm"><img src="images/menu_r1_c1.jpg" width="212" height="34" alt="Energy Grants" border="0"></a></td>
</tr>
<tr>
<td><a href="downloads.htm"><img src="images/menu_r2_c1.jpg" width="212" height="35" alt="Downloads" border="0"></a></td>
</tr>
<tr>
<td><a href="photo_gallery.htm"><img src="images/menu_r3_c1.jpg" width="212" height="36" alt="Photo Gallery" border="0"></a></td>
</tr>
<tr>
<td><a href="ber_certs.htm"><img src="images/ber.jpg" width="212" height="33" alt="BER Certs" border="0"></a></td>
</tr>
<tr>
<td><a href="contact_us.htm"><img src="images/menu_r4_c1.jpg" width="212" height="35" alt="Contact Us" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="9"></td>
</tr>
<tr>
<td height="495" valign="top"><img src="images/menu_r5_c1.jpg" width="212" height="495" alt="Suppliers"></td>
</tr>
</table>
</td>
<td width="13" height="23"></td>
<td width="733"></td>
<td width="13"></td>
</tr>
<tr>
<td height="335"></td>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="733" height="11"></td>
</tr>
<tr>
<td valign="top" height="171">
<p>
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
require_once "/home/k7mmg8tt/public_html/cmsAdmin/lib/viewer_functions.php";
list($gallery_underfloor_heatingRecords, $gallery_underfloor_heatingMetaData) = getRecords(array(
'tableName' => 'gallery_underfloor_heating',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$gallery_underfloor_heatingRecord = @$gallery_underfloor_heatingRecords[0]; // get first record
// show error message if no matching record is found
if (!$gallery_underfloor_heatingRecord) {
header("HTTP/1.0 404 Not Found");
print "Record not found!";
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- INSTRUCTIONS -->
</p>
<div class="instructions"> <b>Sample Detail Page Viewer - Instructions:</b>
<ol>
<?php ?> </a>
<li><a href="mailto:?subject=<?php echo thisPageUrl() ?>"><b>Remove
any fields you don't want displayed.</b></a></li>
<li><a href="mailto:?subject=<?php echo thisPageUrl() ?>">Rearrange
remaining fields to suit your needs.</a></li>
<li><a href="mailto:?subject=<?php echo thisPageUrl() ?>">Copy
and paste code into previously designed page (or add design
to this page).</a></li>
</ol>
</div>
<a href="mailto:?subject=<?php echo thisPageUrl() ?>">
<!-- /INSTRUCTIONS -->
> </a> </td>
</tr>
<tr>
<td height="153"></td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td height="350"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="26"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="99" colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/bottom.jpg">
<tr>
<td width="44" height="16"></td>
<td width="915"></td>
<td width="21"></td>
</tr>
<tr>
<td height="71"></td>
<td valign="top">
<div align="center">
<table width="100%" border="0">
<tr>
<td height="51">
<div align="center" class="css"><a href="index.htm">Home</a>
| <a href="pellet_boiler_systems.htm">Pellet Boiler Systems</a>
| <a href="gas_boilers.htm">Gas Condensing Boilers</a> |
<a href="heat_recovery_systems.htm">Heat Recovery &
Ventilation</a> | <a href="solar_power_systems.htm">Solar
Systems</a> | <a href="heating_controls.htm">Heating Controls</a>
|<a href="underfloor_heating_systems.htm">Underfloor Heating</a>
| <a href="grants.htm">Grants</a> | <a href="downloads.htm">Downloads</a>
|<a href="photo_gallery.htm"> Photo Gallery</a> |<a href="privacy.htm">Privacy
Policy</a> | <a href="legal.htm">Website Legal Statement</a>|
<a href="ber_certs.htm">BER Certificates</a> | <a href="contact_us.htm">Contact
Us</a></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#003300">©2010
Kearns Heating & Plumbling</font></div>
</td>
</tr>
</table>
<div align="right"></div>
</div>
</td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Re: [GB39CA] Cannot Modify Headers
By Jason - March 24, 2010
Hi,
Try taking this part of the code:
<?php
require_once "/home/k7mmg8tt/public_html/cmsAdmin/lib/viewer_functions.php";
list($gallery_underfloor_heatingRecords, $gallery_underfloor_heatingMetaData) = getRecords(array(
'tableName' => 'gallery_underfloor_heating',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$gallery_underfloor_heatingRecord = @$gallery_underfloor_heatingRecords[0]; // get first record
// show error message if no matching record is found
if (!$gallery_underfloor_heatingRecord) {
header("HTTP/1.0 404 Not Found");
print "Record not found!";
exit;
}
?> [/#000000]
and paste it at the very top of the page. Make sure there are no blank spaces before it.
Hope that helps.
Try taking this part of the code:
<?php
require_once "/home/k7mmg8tt/public_html/cmsAdmin/lib/viewer_functions.php";
list($gallery_underfloor_heatingRecords, $gallery_underfloor_heatingMetaData) = getRecords(array(
'tableName' => 'gallery_underfloor_heating',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$gallery_underfloor_heatingRecord = @$gallery_underfloor_heatingRecords[0]; // get first record
// show error message if no matching record is found
if (!$gallery_underfloor_heatingRecord) {
header("HTTP/1.0 404 Not Found");
print "Record not found!";
exit;
}
?> [/#000000]
and paste it at the very top of the page. Make sure there are no blank spaces before it.
Hope that helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/