Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2008, 12:42 AM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 09-23-2008, 05:33 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure there is no whitespace before the <?php tag in index.php & config.php.
Reply With Quote
  #3  
Old 09-25-2008, 03:40 AM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-25-2008, 04:03 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is line 8 on your php page? (I get the error in both firefox and safari on my mac.)
Reply With Quote
  #5  
Old 09-25-2008, 01:54 PM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #6  
Old 09-25-2008, 02:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-25-2008, 02:14 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's caused when you run a script that adds cookies AFTER content has been sent to the browser. White-space is content, BTW.
Reply With Quote
  #8  
Old 09-25-2008, 03:06 PM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 09-25-2008, 03:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #10  
Old 09-25-2008, 03:16 PM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:55 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.04469 seconds
  • Memory Usage 2,291KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete