IsaacP Posted January 10, 2012 Share Posted January 10, 2012 ok well I can't figure out whats wrong with my game, it's probably something really simple but I can't figure it out. Here is the error that it gives, maybe you guys can help Warning: session_start() [function.session-start]: open(/tmp/sess_e40a3631e39cebf89cf6d2f4b2fb88a2, O_RDWR) failed: Permission denied (13) in /home/gangstal/public_html/globals.php on line 6 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/gangstal/public_html/globals.php:6) in /home/gangstal/public_html/globals.php on line 6 Warning: Cannot modify header information - headers already sent by (output started at /home/gangstal/public_html/globals.php:6) in /home/gangstal/public_html/globals.php on line 21 Warning: Unknown: open(/tmp/sess_e40a3631e39cebf89cf6d2f4b2fb88a2, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 Quote Link to comment Share on other sites More sharing options...
newttster Posted January 11, 2012 Share Posted January 11, 2012 Not sure ... but are you calling the globals more than once. Instead of "include" try "require once" for your globals. Quote Link to comment Share on other sites More sharing options...
IsaacP Posted January 11, 2012 Author Share Posted January 11, 2012 ok I'm gonna post the code so you guys can maybe help that way, maybe with the code and the error it'll help so here it is Warning: session_start() [function.session-start]: open(/tmp/sess_e40a3631e39cebf89cf6d2f4b2fb88a2, O_RDWR) failed: Permission denied (13) in /home/gangstal/public_html/globals.php on line 6 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/gangstal/public_html/globals.php:6) in /home/gangstal/public_html/globals.php on line 6 Warning: Cannot modify header information - headers already sent by (output started at /home/gangstal/public_html/globals.php:6) in /home/gangstal/public_html/globals.php on line 21 Warning: Unknown: open(/tmp/sess_e40a3631e39cebf89cf6d2f4b2fb88a2, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 <?php /*--------------------------------- -- MCCodes 2.0 -- By Dabomstew ---------------------------------*/ session_start(); ob_start(); if(get_magic_quotes_gpc() == 0) { foreach($_POST as $k => $v) { $_POST[$k]=addslashes($v); } foreach($_GET as $k => $v) { $_GET[$k]=addslashes($v); } } require "global_func.php"; if($_SESSION['loggedin']==0) { ("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $domain=$_SERVER['HTTP_HOST']; global $jobquery, $housequery; if($jobquery) { $is=$db->query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid"); } else if($housequery) { $is=$db->query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid"); } else { $is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); } $ir=$db->fetch_row($is); if($ir['force_logout']) { $db->query("UPDATE users SET force_logout=0 WHERE userid=$userid"); session_unset(); session_destroy(); header("Location: login.php"); exit; } global $macropage; if($macropage && !$ir['verified'] && $set['validate_on']==1) { header("Location: macro1.php?refer=$macropage"); exit; } check_level(); $h = new headers; $h->startheaders(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); global $atkpage; if($atkpage) { $h->userdata($ir,$lv,$fm,$cm,0); } else { $h->userdata($ir,$lv,$fm,$cm); } global $menuhide; if(!$menuhide) { $h->menuarea(); } ?> also I don't know what file unknown is?? Quote Link to comment Share on other sites More sharing options...
bluegman991 Posted January 11, 2012 Share Posted January 11, 2012 On line 21 ("Location: login.php") should be header("Location: login.php") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.