View Full Version : session_start() error
my site showing this errors
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/ACCOUNTINFO REMOVED/
i dont know whats wrong with my codes because it working perfectly before the migration, but i got this error on new platform. i thought its due to extra line that appear in <? and i uploaded the old file that i make backup on my pc before the migration, i still have this problem. can anyone tell me what caused this problem?
oh ya, this script use curl but it not working anymore on new platform
hope someone expert can help me =|
6-24-06, 11:51 PM
There appears to be a slight problem with ftp adding or deleting characters, seems hard to beleive.
If the files are not too big you could try uploading using a html form to see if that is the problem.
ok i think i fix the session error but the weird thing happened is my site can't curl outsite. it can't accccesss gmail. well i'm using gmailib to access my gmail account content :)
edit: arghh i get error again.. can anyone tell me what happening here?
6-25-06, 06:37 PM
Most of the outgoing ports are blocked for security reasons.
Hard to beleive they would block the "mail" ports.
I'm getting similar errors with sessions. I migrated a previously working php app from an old server to a new powweb server. I've been working for the last few hours trying to figure out what the deal is. Finally, I got creative and looked into the CGI log.
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0
PHP Warning: Unknown(): open(/var/php_sessions/sess_5889c807c170e8592447b4cff88b4fea, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP Warning: session_start(): open(/var/php_sessions/sess_5889c807c170e8592447b4cff88b4fea, O_RDWR) failed: No such file or directory (2) in /hermes/web08/b1201/pow.****/htdocs/****.php on line 11
I've tried switching my $_SESSION to the HTTP style; but still no luck. Any idea what the deal is? phpBB seems to be working fine :/
6-26-06, 12:19 AM
Make sure you don't have a php.ini in htdocs.
Edit the sitewide php.ini using this link.
Change the sessions path to a directory in your webspace.
i also experienced same thing with u nota, but when i edited the php.ini, it give me zend optimizer error.
other alternative way to fix it is u can just go to main>enhance script library>php script, and set the phpini setting to blank..i mean remove it. and it working fine.
phpsessions also fixed, i rebuilt the script .LOL. without knowing what really caused it, i compared new script with old one, i still can't find what caused it.!!
curl not working "Fail to connect because: no response"
why we can't curl out? port 80 also blocked?
HI i got this message after migrating to the new server
Warning: session_start(): open(/var/php_sessions/sess_84203348fc657f9882c2da414a77d6e9, O_RDWR) failed: No such file or directory (2) in /xxxxxxxxxxxxxxx/gallery2/install/index.php on line 111
I am trying to intall gallery2, can someone please give me a step by step instruction on how to solve this error ?
6-27-06, 09:49 PM
My sessions are also not working.
I currently have my session path save to my root directory
I can see the session files being created in that directory.
The page that creates the files can read them, but when I go to another page, that page cannot read the session file.
$myvar = unserialize($_SESSION['sessionvarlabel'] );
$myvar is empty.
6-27-06, 10:02 PM
If your site has been migrated you will have to chnage the path.
6-27-06, 11:49 PM
Thanks, changing the path worked.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.