View Single Post
  #110  
Old 09-16-2005, 04:56 PM
lem's Avatar
lem lem is offline
 
Join Date: May 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this system setup for my site locksmithcafe.com. However, when I log out of the forum and go to locksmithcafe.com it gives me the following error:

Quote:
Unable to add cookies, header already sent.
File: /home/httpd/vhosts/locksmithcafe.com/httpdocs/index.php
Line: 9

whats up with that do you think?

Here is my index.php page:

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Welcome to the Locksmith Cafe!</title>
</head>

<body>
<?php 
// OUR CONTENT BEGINS ON LINE 48 -----------------------------------------
// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ## 
chdir("./forum"); 

// ## Error Reporting ( we use error reporting in php so we can control the display of error messages 
// ## we will use this because all vBulletin files follow the same error reporting rules) ## 
error_reporting(E_ALL & ~E_NOTICE); 

// ## this here defines the "this_script" function, which if you use template conditionals, it will come in handy :) ## 
define('THIS_SCRIPT''page'); 

// ## this action here cache's the templates so that everytime their needed a querry wont be needed to run 
// ## the names in there are just the template names :), there must be a comma after everyone but the last ## 
$globaltemplates = array( 
'headinclude',
'header'
'navbar'
'footer' 
); 

// ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ## 
require_once("./global.php"); 

// ## ok this next set of lines "eval"'s our templates so they can be called inside the template we will print out ## 

eval('$h_include = "' fetch_template('headinclude') . '";'); 
eval(
'$header = "' fetch_template('header') . '";'); 
//eval('$navbar = "' . fetch_template('navbar') . '";'); 
eval('$footer = "' fetch_template('footer') . '";'); 

//eval('print_output("' . fetch_template('headinclude') . '");');

echo $h_include;
echo 
$header;
//echo $navbar;
// ********************************************************************************
// place our content here *********************************************************

echo '
<h3>Welcome to the Locksmith Cafe!</h3>

<br><br><br><br>
<h3>Find a Locksmith in Your area!</h3>
'
;
include 
$_SERVER['DOCUMENT_ROOT'].'/search.html';
// end our content ****************************************************************
// ********************************************************************************
echo $footer;
?>
</body>
</head>
Any ideas?

thanks

Lem
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01273 seconds
  • Memory Usage 1,793KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete