Quote:
Originally Posted by Delphiprogrammi
be verry carefull with spaces in PHP code eg "? >" that will cause this error what linenumber is PHP complaining about ? look in that number or lines of code above it
|
In my attempt to fix it, I moved the session_start to the beginning of functions_ghsom.php. I've double checked that file to see if there is spaces before <? and after ?>. I now get this error message right after I ban a user and submit their info to glow-host.
Code:
session_start() [function.session-start]: Cannot send session cache limiter - headers already sent(output started at [path]/includes/adminfunctions.php:290) in [path]/includes/functions_ghsom.php on line 2
The first half of my functions_ghosom.php looks like:
Code:
<?php
session_start();
// This sometimes happens
if (!isset($GLOBALS['vbulletin']->db)) exit();
// Let's define a set of flags
define (VBGHSFS_NO_TEST, -1);
define (VBGHSFS_PASS, 0);
define (VBGHSFS_FAIL, 1);
define (VBGHSFS_HIT_BUT_PASS, 2);
define (VBGHSFS_REMOTE_ERROR, 3);
define (VBGHSFS_BLOCKED, 1);
define (VBGHSFS_ALLOWED, 0);
For my admin functions around line 290:
Code:
// if there is an onload action for <body>, set it up
$onload = iif($onload != '', " $onload");
// set up some options for nav-panel and head frames
if (defined('IS_NAV_PANEL'))
{
$htmlattributes = ' class="navbody"';
$bodyattributes .= ' class="navbody"';
$headinsert .= '<base target="main" />';
}
else
{
$htmlattributes = '';
}
// print out the page header
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\r\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" dir=\"" . vB_Template_Runtime::fetchStyleVar('textdirection') . "\" lang=\"" . vB_Template_Runtime::fetchStyleVar('languagecode') . "\"$htmlattributes>\r\n";
echo "<head>
<title>$titlestring</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . vB_Template_Runtime::fetchStyleVar('charset') . "\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"../cpstyles/global.css?v={$vbulletin->options[simpleversion]}\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/controlpanel.css?v={$vbulletin->options[simpleversion]}\" />" . iif($headinsert != '', "
$headinsert") . "
<style type=\"text/css\">
.page { background-color:white; color:black; }
.time { color:silver; }
/* Start generic feature management styles */
.feature_management_header {
font-size:16px;
}
/* End generic feature management styles */
Thanks!