473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

session_start(0), session already sent error

Warning: session_start(): open(/tmp\sess_bd6e0da1ed76c6b86f102376e2efb508, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p on line 104

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p:104) in C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p on line 104

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p:104) in C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p on line 104


I applay one installation process i got this error, please give the correct solution of this problem as soon as possible.
Jan 9 '08 #1
3 1840
Markus
6,050 Expert 4TB
There's no possible way we can help without the code that is causing this error - we're not pyschics.

use CODE tags when posting code.
Jan 9 '08 #2
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. /*
  3.  * Base Installer include file 
  4.  *
  5.  */
  6. error_reporting(E_ALL ^ E_NOTICE);
  7. define('INSTALLER_PATH', realpath(dirname(__FILE__)));
  8. define('INSTALLER_API', true);
  9. define('APP_PATH', realpath(INSTALLER_PATH.'/..'));
  10. require_once(INSTALLER_PATH.'/includes/InstallerConfig.php');
  11. require_once(INSTALLER_PATH.'/includes/InstallerEngine.php');
  12. require_once(INSTALLER_PATH.'/includes/InstallerSmarty.php');
  13. require_once(INSTALLER_PATH.'/includes/Field.php');
  14. require_once(INSTALLER_PATH.'/includes/TextField.php');
  15. require_once(INSTALLER_PATH.'/includes/PasswordField.php');
  16. require_once(INSTALLER_PATH.'/includes/SelectField.php');
  17. require_once(INSTALLER_PATH.'/includes/SeparatorField.php');
  18. require_once(INSTALLER_PATH.'/includes/ErrorStack.php');
  19. require_once(INSTALLER_PATH.'/actions/BaseAction.php');
  20. require_once(INSTALLER_PATH.'/actions/SQLAction.php');
  21. require_once(INSTALLER_PATH.'/actions/SQLFile.php');
  22. require_once(INSTALLER_PATH.'/actions/SQLOptions.php');
  23. require_once(INSTALLER_PATH.'/tests/BaseTest.php');
  24. require_once(INSTALLER_PATH.'/includes/BaseSet.php');
  25. require_once(INSTALLER_PATH.'/includes/VersionSet.php');
  26. require_once(INSTALLER_PATH.'/includes/Version.php');
  27. require_once(INSTALLER_PATH.'/includes/VersionCheck.php');
  28. class Installer{
  29. function Installer() {}
  30.     function getTemplatePath($template_name){
  31.         if(isset($GLOBALS['INSTALLER']['TEMPLATE_DIR'])){
  32.             if(file_exists($GLOBALS['INSTALLER']['TEMPLATE_DIR'].'/'.$template_name)){
  33.                 return     $GLOBALS['INSTALLER']['TEMPLATE_DIR'].'/'.$template_name;
  34.             }
  35.         }
  36.  
  37.         if(file_exists(INSTALLER_PATH.'/templates/'.$template_name)){
  38.             return INSTALLER_PATH.'/templates/'.$template_name;
  39.         }
  40.  
  41.         ErrorStack::addError("Could not find template file $template_name!", ERRORSTACK_ERROR, 'Installer');
  42.         return $template_name;
  43.     }    
  44.  
  45.     function getTestPath($class_name){
  46.         if(isset($GLOBALS['INSTALLER']['TEST_DIRS']) && is_array($GLOBALS['INSTALLER']['TEST_DIRS'])){
  47.             foreach($GLOBALS['INSTALLER']['TEST_DIRS'] as $dir){
  48.                 if(file_exists($dir.'/'.$class_name.'.php')){
  49.                     return $dir.'/'.$class_name.'.php';
  50.                 }
  51.             }
  52.         }
  53.  
  54.         if(file_exists(INSTALLER_PATH.'/tests/'.$class_name.'.php')){
  55.             return INSTALLER_PATH.'/tests/'.$class_name.'.php';
  56.         }
  57.  
  58.         ErrorStack::addError("Could not find file for Test class $class_name", ERRORSTACK_FATAL, 'Installer');
  59.         return FALSE;
  60.     }
  61.  
  62.     function getActionPath($class_name){
  63.         if(isset($GLOBALS['INSTALLER']['ACTION_DIRS']) && is_array($GLOBALS['INSTALLER']['ACTION_DIRS'])){
  64.             foreach($GLOBALS['INSTALLER']['ACTION_DIRS'] as $dir){
  65.                 if(file_exists($dir.'/'.$class_name.'.php')){
  66.                     return $dir.'/'.$class_name.'.php';
  67.                 }
  68.             }
  69.         }
  70.  
  71.         if(file_exists(INSTALLER_PATH.'/actions/'.$class_name.'.php')){
  72.             return INSTALLER_PATH.'/actions/'.$class_name.'.php';
  73.         }
  74.  
  75.         ErrorStack::addError("Could not find file for Action class $class_name", ERRORSTACK_FATAL, 'Installer');
  76.         return FALSE;
  77.     }
  78.  
  79. }
  80. // Bootstrapping tests
  81. // Setup PHP Version numbers
  82. $version_components = split('\.', phpversion());
  83. $GLOBALS['INSTALLER']['PHP_VERSION_MAJOR'] = $version_components[0];
  84. $GLOBALS['INSTALLER']['PHP_VERSION_MINOR'] = $version_components[1];
  85. $GLOBALS['INSTALLER']['PHP_VERSION_REMAINING'] = implode('.', array_splice($version_components, 2));
  86.  
  87. // A basic version check we need at least PHP 4.2 to run
  88. $ver = $GLOBALS['INSTALLER']['PHP_VERSION_MAJOR'].'.'.$GLOBALS['INSTALLER']['PHP_VERSION_MINOR'];
  89. if (version_compare($ver, '4.2', '<')) {
  90.     print("Installer Error: PHP version 4.2 or greater is required to run the installer!");
  91.     die();    
  92. }
  93. $GLOBALS['INSTALLER']['CONFIG_FILE'] = INSTALLER_PATH.'/config.php'; 
  94. if(!file_exists($GLOBALS['INSTALLER']['CONFIG_FILE'])){
  95.     print("Installer Error: Cound not find config file at ".$GLOBALS['INSTALLER']['CONFIG_FILE']);
  96.     die();    
  97. }
  98. $GLOBALS['INSTALLER']['INSTALLER_CONFIG'] =& new InstallerConfig($GLOBALS['INSTALLER']['CONFIG_FILE']);
  99. if($GLOBALS['INSTALLER']['INSTALLER_CONFIG']->parse() === FALSE){
  100.     print("Installer Error: Error parsing config file {$GLOBALS['INSTALLER']['CONFIG_FILE']}<BR>\n");
  101.     print($GLOBALS['INSTALLER']['INSTALLER_CONFIG']->getErrorsHTML());
  102.     die();
  103. }
  104. set_time_limit(0);
  105. session_start();
  106. if(isset($_REQUEST['restart_installer']) || !isset($_SESSION['INSTALLER']['ENGINE']) || !is_a($_SESSION['INSTALLER']['ENGINE'], 'InstallerEngine')){
  107.     $_SESSION['INSTALLER']['ENGINE'] =& new InstallerEngine($GLOBALS['INSTALLER']['INSTALLER_CONFIG']);     
  108. }
  109. $GLOBALS['INSTALLER']['ENGINE'] =& $_SESSION['INSTALLER']['ENGINE'];
  110.  
  111. if(isset($_REQUEST['previous_step'])){
  112.     $GLOBALS['INSTALLER']['ENGINE']->previousStep();
  113. }elseif(isset($_REQUEST['next_step'])){
  114.     $GLOBALS['INSTALLER']['ENGINE']->nextStep();
  115. }
  116. ?>
error:

Warning: session_start(): open(/tmp\sess_7472f367973622b1a3de23b88e1eefb6, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p on line 105

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p:105) in C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p on line 105

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p:105) in C:\Program Files\Apache Group\Apache2\htdocs\Care2x\installer\Installer.ph p on line 105
please give me good idea about this problem
Jan 10 '08 #3
ak1dnar
1,584 Expert 1GB
The error is is saying clearly what's missing in your script, fix it first then post back if more errors comes.
Jan 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sky2070 | last post by:
session_start(); $_SESSION++; print 'You have visited here '.$_SESSION.' times.'; returned: Warning: session_start() : open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4, O_RDWR) failed: No...
3
by: Florence HENRY | last post by:
Hello, I've searched about my problem on google before posting, but I didn't find anything relevant... I have a problem with session_start. Here is my code : <html> <head> <?php...
4
by: Bob | last post by:
Seem to have a problem ending a session. I get the following message. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at...
8
by: lkrubner | last post by:
I was trying to set a cookie before I called session_start() and it was giving me an error. But isn't sessions really just a cookie? Why would it matter if I sent a cookie before session_start? Can...
3
by: lawrence k | last post by:
I'm getting this warning: PHP Warning: session_start(): Cannot send session cache limiter - headers already sent in...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
1
by: ereyes | last post by:
I am trying to load my website running on IIS v6 Windows 2003 and I got the following errors. Please help me. Thanks. Warning: session_start() :...
2
by: IchBin | last post by:
I am getting the error message below when ever I try to start my script on two different servers. I am not getting any errors off of my PC. I have looked around and found the answer a simple one. I...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.