Warning: file_exists(): open_basedir restriction in effect

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xxx/xxx/includes/functions.php on line 1939

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/xxx:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xxx/xxx/includes/functions.php on line 1948

Решение

открыть на редактирование скрипт /includes/database.php и в строчке в которой возникла ошибка заменить код
if (file_exists('../configuration.php') OR file_exists('configuration.php')) {

заменить на
if (@file_exists('../configuration.php') OR file_exists('configuration.php')) {

добавить @ и скорее всего все без ошибок заработает

Теги: