View Full Version : How would i fix this error
GoldenMerc
30-03-2010, 02:45 PM
Warning: session_start() [function.session-start (http://hhgs.net/usersystem/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/hhgsnet/public_html/usersystem/login.php:13) in /home/hhgsnet/public_html/usersystem/login.php on line 15
On line 15 the code is;
session_start();
+REP for heelpppp
Ross
ThisNameWillDo!
30-03-2010, 02:46 PM
session_start(); needs to be at the top of the page I believe, before any html or anything.
Kind Regards,
Vince.
GoldenMerc
30-03-2010, 02:53 PM
It's at the top of the PHP coding...
ThisNameWillDo!
30-03-2010, 02:59 PM
It's at the top of the PHP coding...
Is it above HTML aswell?
Eliel
30-03-2010, 03:01 PM
Post the file here?
GoldenMerc
30-03-2010, 03:08 PM
Is it above HTML aswell?
Nopeeeeee!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link href="style.css" rel="stylesheet" type="text/css" />
<html>
<head>
<title>The site</title>
</head>
<body>
<center>
<p>R&T CARTS </p>
<br>
<p>
<?php
//start session and include conf...
include'config.php';
ThisNameWillDo!
30-03-2010, 03:09 PM
That would be your problem then...
<?php
include "config.php";
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link href="style.css" rel="stylesheet" type="text/css" />
<html>
<head>
<title>The site</title>
</head>
<body>
<center>
<p>R&T CARTS </p>
<br>
<p>
<?php
//REST OF PHP HERE
?>
GoldenMerc
30-03-2010, 03:14 PM
Warning: session_start() [function.session-start (http://hhgs.net/usersystem/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/hhgsnet/public_html/usersystem/config.php:7) in /home/hhgsnet/public_html/usersystem/login.php on line 3
Its sayingggg
Calvin
30-03-2010, 03:37 PM
Theres not any spaces before the <?php or after the ?> is there?
Johno
30-03-2010, 04:15 PM
Put the "session_start();" above the include?
ThisNameWillDo!
30-03-2010, 04:54 PM
As Johno said, putting session_start(); above the include "config.php"; should work.
<?php
session_start();
include "config.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link href="style.css" rel="stylesheet" type="text/css" />
<html>
<head>
<title>The site</title>
</head>
<body>
<center>
<p>R&T CARTS </p>
<br>
<p>
<?php
//REST OF PHP HERE
?>
LMS16
31-03-2010, 02:32 PM
Also if you have session_start(); in the config file also, that could be cause a problem...?
Lew.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.