Jump to content

[SOLVED] MySQL or PHP error


big-dog1965

Recommended Posts

This is being displayed when I try to access a page on site. What does it mean and how do I fix it.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/Clan/apps_view.php:5) in /home/public_html/Clan/appView/level4_check.php on line 4

<?php
// THIS IS THE USER LEVEL 4 ACCEPTANCE CHECK
// ADD OR INCLUDE THIS AT THE TOP OF ANY PAGES THAT ALLOW USER LEVEL 4 ACCESS 
session_start();
include "sigfig.php";

if(!isset($_SESSION['level'])){
echo"Error - You have not got authority to enter this page (ERR code: sesslev unset line ";		
}
if ($_SESSION['level'] != "4") {

echo"Your are not authorised to access this area - if this is incorrect please contact administration - <a href='login.php'>CLICK HERE TO LOGIN</a>";
exit();
}
?>

 

Link to comment
https://forums.phpfreaks.com/topic/145879-solved-mysql-or-php-error/
Share on other sites

i am guessing that on line 5 of apps_view.php there is some kind of output?

then on some line after that there is either

include "appView/level4_check.php";

or

require "appView/level4_check.php";

you need to change it so that session_start() is called before the output

 

Scott.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.