Warning in php after updating to version 1.4.6

After Updating to version 1.4.6 [bbddab7675] I got the following warning:

'WARNING: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/lib/php5) is not within the allowed path(s): (/var/www/web219) in /var/www/<username>/html/album_xxxxxxxx/zp-core/functions-basic.php on line 154'
<username> stands for my username and 'xxxxxx' for the name of the album on the server.

I added in the file /zp-core/function-basic.php the following code above line 154 to patch at the moment the problem:
'@ini_set('session.save_path', '/var/www/<username/html/album_xxxxxx/sessions/');'

In consequence the code in function-basic.php reads now as follows:
'define('FOLDER_MOD', CHMOD_VALUE | 0311);
define('FILE_MOD', CHMOD_VALUE & 0666);
define('DATA_MOD', fileperms(SERVERPATH . '/' . DATA_FOLDER . '/' . CONFIGFILE) & 0777);
@ini_set('session.save_path', '/var/www/web219/html/album_1005201301/sessions/');
$_session_path = session_save_path();
if (!file_exists($_session_path) || !is_writable($_session_path)) {
mkdir_recursive(SERVERPATH . '/' . DATA_FOLDER . '/PHP_sessions', FOLDER_MOD);
session_save_path(SERVERPATH . '/' . DATA_FOLDER . '/PHP_sessions');
}
unset($_session_path);'

My question:
Is this problem known and what solution of the problem do You propose?
Any help appreciated.

Please excuse my English, but I am not a native speaker.

Comments

Sign In or Register to comment.