Jump to content

[SOLVED] Error Message Help


chordsoflife

Recommended Posts

Warning: session_start() [function.session-start]: open(/.../tmp/php/sess_8217c839794ad432cfca5f2d2a84c97f, O_RDWR) failed: Permission denied (13) in /fs/barasinga/rack5f/u/department/.../public_html/inc/db.php on line 3

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /fs/barasinga/rack5f/u/department/.../public_html/inc/db.php:3) in /fs/barasinga/rack5f/u/department/.../public_html/inc/db.php on line 3

 

Warning: Unknown(): open(/.../tmp/php/sess_8217c839794ad432cfca5f2d2a84c97f, O_RDWR) failed: Permission denied (13) in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/.../tmp/php) in Unknown on line 0

 

There's no spaces before session_start()!

Link to comment
Share on other sites

db.php

 

<?

session_start();

$host		=	'...';
$user		=	'...';
$pass		=	'...';
$database	=	'...';

$connect = @mysql_connect ($host, $user, $pass);

mysql_select_db($database);  

if ($connect){ } else {trigger_error ( mysql_error(), E_USER_ERROR );}

?>

 

and I call it:

 

<?

include('inc/db.php');
$page="Home";
include('inc/header2.php'); 

?>

Link to comment
Share on other sites

Remove all white space.  You probably have a tab character at least in there according to the spacing.  Depending on your editor, that could be your problem.

 

Also, one of the error messages points to your ability to save session data.  Have sessions ever worked for you on that server?

Link to comment
Share on other sites

Permission denied errors on session_start() can be indicative of your Session.save_path being configured improperly in your php.ini file (which I think the previous poster was asking about). Can you post your Session.save_path value here?

 

I think the header error only occurs because the session_start() is outputting an error message about a permission denial.

Link to comment
Share on other sites

Yea, it has worked. It still works - the error messages are just there. I can log in and out no problem.

 

It might also be noteworthy that I checked on another computer and the error messages were not there.

 

How should I start it.. just right up against the "<?"? So:

 

<?session_start()

 

I'll check the php.ini file, but this is on my college's network, so I can't change it. Is there a way to edit it in the php? I think I've seen something along those lines. Anyway, I'll post back in a minute. Thanks!

Link to comment
Share on other sites

I know, right? That's what I said.

 

Here's my php.ini result:

/.../uvm.edu/fs/uvmshare/tmp/php

 

Here's what it's trying:

Warning: session_start() [function.session-start]: open(/.../uvm.edu/fs/uvmshare/tmp/php/sess_8217c839794ad432cfca5f2d2a84c97f, O_RDWR) failed: Permission denied (13) in /fs/barasinga/rack5f/u/department/uvmst/public_html/inc/db.php on line 3

Link to comment
Share on other sites

By "another computer" you mean a different server, not just visiting the web page from a different computer... right? If you just visited the web page from another computer, try ctrl-f5 (load without cache) on your computer that isn't working properly, if you moved it to a different php server, read this:

 

"/.../uvm.edu/fs/uvmshare/tmp/php"

 

PRETTY sure that's not right. Glad I could be vague and help.

 

Since you seem to be using a shared server, you can try to navigate through the directory tree and find the correct directory or you could just contact your service provider and ask what the proper setting is.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.