473,625 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session_start(0 ), session already sent error

2 New Member
Warning: session_start() : open(/tmp\sess_bd6e0d a1ed76c6b86f102 376e2efb508, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php on line 104

Warning: session_start() : Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php:104) in C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php on line 104

Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php:104) in C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php 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 1847
Markus
6,050 Recognized Expert Expert
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
sudhakarsh
2 New Member
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_7472f3 67973622b1a3de2 3b88e1eefb6, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php on line 105

Warning: session_start() : Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php:105) in C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php on line 105

Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php:105) in C:\Program Files\Apache Group\Apache2\h tdocs\Care2x\in staller\Install er.php on line 105
please give me good idea about this problem
Jan 10 '08 #3
ak1dnar
1,584 Recognized Expert Top Contributor
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
21703
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 such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\session.php on line 3
3
2895
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 session_start();
4
14078
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 C:\xitami\xitami-24\app\webpages\logout.php:9) in C:\xitami\xitami-24\app\webpages\logout.php on line 10 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at
8
2227
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 I set them afterwards?
3
53654
by: lawrence k | last post by:
I'm getting this warning: PHP Warning: session_start(): Cannot send session cache limiter - headers already sent in /home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandStartSession.php on line 14 line 14 is this:
19
7917
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 limiter - headers already sent in /home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandStartSession.php on line 14
1
3368
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() : open(C:\PHP\sessiondata\sess_2d12f45e67883f9c2bd9262562b79eb5, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\pum\commons\Session.Commons.module.php on line 7 Warning: session_start() : Cannot send session cookie - headers already sent by (output started at...
2
1840
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 can not stop the error in my script. The session_start() is the first thing that happens before any Headers are created. Any one have any suggestions. Include the start of the code that uses the session var. Warning: session_start(): Cannot...
4
5933
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, however and am really struggling with managing sessions in PHP, based on my experiences with managing sessions in ASP. 99.9% of the feedback I have seen when dealing with the errors has referred to having whitespace before the <?php or after the...
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.