•  

Forum

Moderated by: stefan, hombergs, xweber
Forum Index
OpenPhpNuke
     Bugs
     WARNING [8] session_start():

Author Printer friendly pageWARNING [8] session_start():
jdub

Joined: July 04, 2004
Posts: 6
Send private message to jdub
Posted: 2004-07-11 08:49

I get this error at random times:

WARNING [8] session_start(): ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied (13)
FOUND IN [class/class.opnsession.php]
FOUND AT 270

Code at 270:
function init_session () {
     if (!defined('_OPN_SHELL_RUN')) {
          // session_name ('OPNSESSION');
          // session_save_path('/tmp');
          session_start();
          }

Is this error from the user/group permissions to the path /tmp of the system?
If this is true, is setting the permissions of /tmp of the system safe?
Or perhaps a workaround?
Or do I even know what I'm talking about?


Quote Printer friendly page upwards
[manne]

Joined: April 12, 2003
Posts: 198


Send private message to [manne]
Posted: 2004-07-11 09:47

This is because your hoster allows the /tmp not for webusers.

You need a directory where you are allowed to write to.


1. open mainfile.php
2. search the line: $install_dir
3. after this line make a new line
4. add in this empty line:
$opnConfig['system_session_save_path'] = ''/path/to/a/directory/with/writeaccess';
5. save mainfile.php

Now the sessions should work.

manne


Quote Printer friendly page upwards
jdub

Joined: July 04, 2004
Posts: 6
Send private message to jdub
Posted: 2004-07-11 10:29

Thanks again!


Quote Printer friendly page upwards
sort by

Previous thread:  Sitemap problem
Next Thread:  eGallery Problem

Jump To:

Nickname:
 
Security Code
Security Code
reload

 
Page took 0.07229 seconds to load