![]() |
|
Warning in php after updating to version 1.4.6 - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Warning in php after updating to version 1.4.6 (/thread-11959.html) |
Warning in php after updating to version 1.4.6 - photobarny - 2015-02-08 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. Warning in php after updating to version 1.4.6 - acrylian - 2015-02-08 `open_basedir restriction` indicates normally a (security) setting of your server being involved here. Best contact your host about that as well. Also please see part of this older topic: http://www.zenphoto.org/support/topic.php?id=933706#post-1332330 |