I'm new to Website developing and php coding. I need some help figuring out an issue with my website's index.php file. Yesterday, my hosting company moved my website from an old server to a new server with a new IP address and now my website is not working correctly. My first page of the website loads correctly but I'm seeing Warning messages in the background stating Warning session start () which are pointing to my index.php on line 2. When page 2 of the website is activated it does not load correctly and the same Warning messages appear in the background. Not sure how to fix it.
Warning: session_start() [function.session-start]: open(/home/content/89/2527889/tmp/sess_69n0egl5ifdqhpavegcl6kt6b5, O_RDWR) failed: No such file or directory (2) in /home/content/89/2527889/html/index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/89/2527889/html/index.php:2) in /home/content/89/2527889/html/index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/89/2527889/html/index.php:2) in /home/content/89/2527889/html/index.php on line 2
Warning: Unknown: open(/home/content/89/2527889/tmp/sess_69n0egl5ifdqhpavegcl6kt6b5, O_RDWR) failed: No such file or directory (2) 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 () in Unknown on line 0
PHP Code:
<?php session_start();
// GET VAIRABLES
if(!empty($_GET['lang'])) { $lang = $_GET['lang']; } else { $lang = ""; }
if(empty($_GET['page'])) { $page = "1"; } else { $page = $_GET['page']; }
$rpt="KPHX";
// GET SCRIPTS
require("scripts/php/functions/church_years.php");
require("scripts/php/functions/define_sermon_hits.php");
require("scripts/php/functions/define_sermon_title.php");
require("scripts/php/functions/define_sermon_link.php");
require("scripts/php/database_credentials.php");
require("scripts/php/languages.php");
require("scripts/php/page_titles.php");
require("scripts/php/set_banner.php");
require("scripts/php/store_status.php");
if($page == 1 and empty($lang)) {
$lang_pti = "Phoenix Tabernacle, INC.";
$lang_meta = "Welcome Phoenix Tabernacle, INC. Bienvendio al Tabernaculo
Phoenix, INC.";
}
// SET FRAMEWORKS
$fw["1"] = "home";
$fw["2"] = "church";
$fw["3"] = "pastor";
$fw["4"] = "leadership";
$fw["5"] = "calendar";
$fw["6"] = "sermons";
$fw["7"] = "donations";
$fw["8"] = "contact";
$fw["9"] = "missionary";
$fw["10"] = "streaming";
$fw["11"] = "join";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Language" content="<?php echo $lang_meta; ?>" />
<title><?php echo $lang_pti; ?></title>
<link href="scripts/css/master.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript"
src="scripts/js/div_toggle.js"></script>
<script type="text/javascript" language="javascript"
src="scripts/js/sidebar_toggle.js"></script>
<script type="text/javascript" language="javascript"
src="scripts/js/ibox.js"></script>
<script type="text/javascript" language="javascript"
src="scripts/js/menu.js"></script>
<script type="text/javascript" language="javascript"
src="scripts/js/join.js"></script>
<script><?php require("scripts/php/countdown.php"); ?></script>
<script type="text/javascript" language="javascript"
src="scripts/js/countdown.js"></script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4143795-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
</head>
<body onLoad="countDown()">
<div class="wrapper" align="center">
<div class="body">
<?php
if(empty($lang)) {
require("framework/language.php");
} else {
// HEADER
require("scripts/php/layout_header.php");
// BODY
if(!file_exists("framework/".$fw[$page].".php")) {
echo "<error>We Apologize But The Page Could Not Found. (404)</error>";
} else {
require("framework/".$fw[$page].".php");
}
// FOOTER
require("scripts/php/layout_footer.php");
}
mysql_close($link);
?>
</div>
</div>
</body>
</html>