Jump to content

Code errors?


tapupartforpres

Recommended Posts

Hello people.  I am sort of new to .php and have a site that I am getting an error.  Works fine live, but locally NO GO?  I saw a bunch of posts on this exact same error, but nothing has worked.  Any insight would be great.  Thanks

 

 

Warning: session_start() [function.session-start]: open(/var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111, O_RDWR) failed: Permission denied (13) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 34

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php:34) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 34

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php:34) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 34

 

Warning: Cannot modify header information - headers already sent by (output started at /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php:34) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 35

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/
Share on other sites

You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as.

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/#findComment-607511
Share on other sites

You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as.

 

There is no such directory.  The file name at the end changes every time I refresh.

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/#findComment-607837
Share on other sites

You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as.

 

There is no such directory.  The file name at the end changes every time I refresh.

Sorry, try this . . .

chmod -R u+rwx /var/folders/xs/

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/#findComment-607869
Share on other sites

You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as.

 

There is no such directory.  The file name at the end changes every time I refresh.

Sorry, try this . . .


Sorry man, it didn't work.  I went to terminal and copied and pasted?
chmod -R u+rwx /var/folders/xs/

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/#findComment-607888
Share on other sites

You should see something like this session.use_cookies = 1 in the php.ini file

 

I went to the php.ini file (I opened it in text editor on a Mac, I know about the .htaccess with a Mac, so just wanted to add that) and it still s giving me the same errors. It was defaulted to a =1, changed to =0 and back. Nothing. What do you think?

 

By the way the php.ini file is in the XAMPP program files.

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/#findComment-607890
Share on other sites

Did you restart the Apache server afterwards?

 

Thank you for the reply.  Wow a forum, where people actually help.  I just tried that all 3 above suggestions and restart after every time and it is still giving me these errors.  I always miss something small, thanks for your help.

Link to comment
https://forums.phpfreaks.com/topic/118088-code-errors/#findComment-607912
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.