vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Unknown Error in index.php Code (https://vborg.vbsupport.ru/showthread.php?t=191621)

legionofangels 09-23-2008 12:42 AM

Unknown Error in index.php Code
 
Unable to add cookies, header already sent.
File: /homepages/26/d196297218/htdocs/index.php
Line: 8



Search Engine Friendly URLs by vBSEO 3.2.0

Viewable:

http://www.legionofangels.net

----------------------------------------------

Solutions, thoughts, ideas?

Dismounted 09-23-2008 05:33 AM

Make sure there is no whitespace before the <?php tag in index.php & config.php.

legionofangels 09-25-2008 03:40 AM

I don't get this at all the code looks and works fine now on Firefox, but not on IE 7 or Safari 3.2 or whatever I have.

The original code maker of which it works on his own website installed it tonight.

I'm lost.

Lynne 09-25-2008 04:03 AM

What is line 8 on your php page? (I get the error in both firefox and safari on my mac.)

legionofangels 09-25-2008 01:54 PM

Quote:

Originally Posted by Lynne (Post 1629743)
What is line 8 on your php page? (I get the error in both firefox and safari on my mac.)

So do I, now I get it on all of the 3 browsers.

Line 8 is our Meta Tag or Meta Description.

Lynne 09-25-2008 02:06 PM

Very strange. I'm not sure what else to suggest. Whenever I've heard this error brought up, it is because of either an extra space around the php tags or because part of the header is parsed prematurely (I can't remember if that was also because of the extra space). I guess I would start over with writing the index page. Start a new one and slowly add in parts of the code until you get the error.

Dismounted 09-25-2008 02:14 PM

It's caused when you run a script that adds cookies AFTER content has been sent to the browser. White-space is content, BTW.

legionofangels 09-25-2008 03:06 PM

PHP Code:

<!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" xml:lang="en" lang="en">
<head>
<title>Legion of Angels</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="DESCRIPTION" content="Christian Forums giving support for those that suffer.  Religious topics on God, Jesus, Angels, and Christianity.  Blog, Chat, Shop, Radio, and Games."/>
<meta name="keywords" content="legion angels angel God Jesus forum holy cross loa help support community christian"/>
<meta name="revisit-after" content="1 days"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta name="verify-v1" content="oQNUsM2RG3V0W1d/KOKC9i0Jgj95r8sOovqns92Gr5E=" />
<meta name="y_key" content="5e56751b612a68ab" />
<meta name="msvalidate.01" content="B110302C8028471D8171F5520FF19ED1" />

<link rel="stylesheet" type="text/css" href="loamain.css" />
</head>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1728006-1";
urchinTracker();
</script>
<body>


<div id="frame">

    <dl id="imap">
    <dd><a id="about" title="About This Site" href="shop.htm">About</a></dd>
    <dd><a id="messages" title="Angel Message Archive" href="http://www.legionofangels.net/angelarchive.php">Messages</a></dd>
    <dd><a id="home" title="Home" href="http://www.legionofangels.net">Home</a></dd>
    <dd><a id="forum" title="Forum" href="http://www.legionofangels.net/forum/">Forum</a></dd>
    <dd><a id="news" title="News" href="http://www.legionofangels.net/wpnews/" target="_blank">News</a></dd>
    <dd><a id="bible" title="Bible" href="http://www.biblegateway.com" target="_blank">Bible</a></dd>
    <dd><a id="google" title="Google" href="http://www.google.com" target="_blank">Google</a></dd>
    <dd><a id="church" title="Church" href="http://www.thechurchfinder.com/home.asp" target="_blank">Church</a></dd>
    <dd><a id="weather" title="Weather" href="http://www.weather.com/" target="_blank">Weather</a></dd>
    <dd><a id="shop" title="Shop" href="shop.htm" target="_parent">Shop</a></dd>
    </dl>


    <div id="contentheader"></div>
    <div id="contentheader2">
        <div id="verse">
            <div id="jverse">
<script type="text/javascript" language="JavaScript" src="http://www.biblegateway.com/usage/votd/votd2html.php?version=31&amp;jscript=1"> 
</script>
<!-- alternative for no javascript -->
<noscript>
<a href="http://www.biblegateway.com/usage/votd/votd2html.php?version=31&amp;jscript=0">View Verse of the Day</a> 
</noscript>
            </div>
        </div>
    </div>
    <div id="loa03"></div>
    <div id="loa04"></div>
    <div id="loa05"></div>
    <div id="loa06"></div>
    <div id="centerbox">
        <div id="blog"><?php include('http://www.legionofangels.net/gm'); ?></div></div>
    <div id="loa08"></div>

    <div id="loa09">
        <div id="site1" class="cleargif"><a href="http://www.legionofangels.net/forum/forumdisplay.php?f=6" title="Entertainment"></a></div>
        <div class="content" id="conleft">
<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Frss.cnn.com%2Frss%2Fcnn_showbiz.rss&amp;chan=title&amp;num=7&amp;desc=1" type="text/javascript"></script>
        </div>
    </div>


    <div id="loa10">
        <div id="site2"><a href="http://www.legionofangels.net/forum/forumdisplay.php?f=15" title="Religion"></a></div>
        <div class="content" id="conmid">
<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Fwww.goarticles.com%2Fcgi-bin%2Frss-search.cgi%3F%26l%3D20%26s%3D1%26c%3D43%26D1%3Dsubject%26title%3DReligion&amp;chan=title&amp;num=7&amp;desc=1" type="text/javascript"></script>
        </div>

    </div>


    <div id="loa11">
        <div id="site3"><a href="http://www.legionofangels.net/forum/forumdisplay.php?f=37" title="Technology"></a></div>
        <div class="content" id="conright">
<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Frss.cnn.com%2Frss%2Fcnn_tech.rss&amp;chan=title&amp;num=7&amp;desc=1" type="text/javascript"></script>

        </div>


    </div>

<div id="loa12">

<div class="content" style="position:relative;float:left;background-color:white;left:33px;">
<?php include("usage.php"); ?>
</div>



<div class="content" style="position:relative;float:left;background-color:white;left:71px;">
<?php include("mypoll.php"); ?>
</div>


<div class="content" style="position:relative;float:left;background-color:white;left:111px;">
test
</div>


<!-- AddThis Bookmark Button BEGIN -->
<div id="bookmark">
<a href="http://www.addthis.com/bookmark.php" onclick="addthis_url   = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"><img src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="AddThis Social Bookmark Button" /></a> <script type="text/javascript">var addthis_pub = 'legionofangels';</script><script type="text/javascript" src="http://s9.addthis.com/js/widget.php?v=10"></script>  
</div>
<!-- AddThis Bookmark Button END -->
</div>
<br clear="all" /><!-- without this little <br /> NS6 and IE5PC do not stretch the frame div down to encopass the content DIVs -->

</div>





</body>
</html>

That is our index.php page.

Lynne 09-25-2008 03:11 PM

I don't get the error when testing it on my site. Try copying the code from here into a new page and test it.

Also, you may want to correct this line (//feed2.js is incorrect):
HTML Code:

<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Frss.cnn.com%2Frss%2Fcnn_showbiz.rss&amp;chan=title&amp;num=7&amp;desc=1" type="text/javascript"></script>

legionofangels 09-25-2008 03:16 PM

Quote:

Originally Posted by Lynne (Post 1630111)
I don't get the error when testing it on my site. Try copying the code from here into a new page and test it.

http://legionofangels.net/index2.php

It errored again.

The lower right white box is gone again though.


All times are GMT. The time now is 11:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04422 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete