bravo81 Posted June 9, 2010 Share Posted June 9, 2010 Hi guys, I have moved servers and now a login PHP system I was using is giving me a session error It is here: http://thelaughingfactory.co.uk/admincp/ The error log states: [09-Jun-2010 20:25:45] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/home/deandesi/public_html/bcwizards.co.uk/thelaughingfactory.co.uk/temp/sess_4b58db168873e6f8bc24d4a407fac790, O_RDWR) failed: No such file or directory (2) in /home/bcwizard/public_html/domains/thelaughingfactory.co.uk/admincp/index.php on line 1 [09-Jun-2010 20:25:45] PHP Warning: Unknown: open(/home/deandesi/public_html/bcwizards.co.uk/thelaughingfactory.co.uk/temp/sess_4b58db168873e6f8bc24d4a407fac790, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 [09-Jun-2010 20:25:45] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/deandesi/public_html/bcwizards.co.uk/thelaughingfactory.co.uk/temp) in Unknown on line 0 Ive tried re-creating the file, deleting all files in the temp folder and even using the temp files that where on the old server. But no luck! Could someone please help me!! Regards, Dean. Quote Link to comment https://forums.phpfreaks.com/topic/204322-simple-php-session-error/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 9, 2010 Share Posted June 9, 2010 Yes, but did you read any of the errors? Please verify that the current setting of session.save_path is correct - (/home/deandesi/public_html/bcwizards.co.uk/thelaughingfactory.co.uk/temp) In - /home/bcwizard/public_html/domains/thelaughingfactory.co.uk/admincp/index.php Your current document root is /home/bcwizard/public_html/domains/thelaughingfactory.co.uk/ not /home/deandesi/public_html/bcwizards.co.uk/thelaughingfactory.co.uk/ Quote Link to comment https://forums.phpfreaks.com/topic/204322-simple-php-session-error/#findComment-1070080 Share on other sites More sharing options...
bravo81 Posted June 9, 2010 Author Share Posted June 9, 2010 Wow, Yeh I didnt notice that. So its rooting to the wrong area..where is that set? Haha..I will root through the files. Thanks for the fast response! Quote Link to comment https://forums.phpfreaks.com/topic/204322-simple-php-session-error/#findComment-1070088 Share on other sites More sharing options...
bravo81 Posted June 9, 2010 Author Share Posted June 9, 2010 Hmm all I can find it defines of localhost and: define("SITE_URL","http://www.thelaughingfactory.co.uk/"); define("SITE_FS_PATH",$_SERVER['DOCUMENT_ROOT']."/admincp/"); define("SITE_PATH","http://thelaughingfactory.co.uk/"); } else { Quote Link to comment https://forums.phpfreaks.com/topic/204322-simple-php-session-error/#findComment-1070090 Share on other sites More sharing options...
CrazeD Posted June 9, 2010 Share Posted June 9, 2010 It is in your php.ini file. Quote Link to comment https://forums.phpfreaks.com/topic/204322-simple-php-session-error/#findComment-1070096 Share on other sites More sharing options...
bravo81 Posted June 10, 2010 Author Share Posted June 10, 2010 Thanks for your help, I did say it was an easy problem! Haha. I found the php.ini file, found the line and corrected the error. Thanks again! Dean. Quote Link to comment https://forums.phpfreaks.com/topic/204322-simple-php-session-error/#findComment-1070433 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.