Ошибки в файле Settings.php

Автор Vadim2268, 26 марта 2019, 00:02:07

« предыдущая - следующая »

0 Пользователей и 1 гость просматривают эту тему.

Vadim2268

Всем добра!

Сегодня просматривал ошибки хостинга по форуму и в основном одна ошибка все время, такого рода:

Код
[Mon Mar 25 22:35:00 2019] [error] [client 157.55.39.136] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51
Код
[Mon Mar 25 22:35:00 2019] [error] [client 157.55.39.136] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53
Код
[Mon Mar 25 22:35:00 2019] [error] [client 157.55.39.136] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55
Код
[Mon Mar 25 22:35:39 2019] [error] [client 195.208.220.139] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://www.malleco.info
Код
[Mon Mar 25 22:35:39 2019] [error] [client 195.208.220.139] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://www.malleco.info
Код
[Mon Mar 25 22:35:39 2019] [error] [client 195.208.220.139] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://www.malleco.info
Код
[Mon Mar 25 22:35:40 2019] [error] [client 195.208.220.139] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://forum.site.com/index.php
Код
[Mon Mar 25 22:35:40 2019] [error] [client 195.208.220.139] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://forum.site.com/index.php
Код
[Mon Mar 25 22:35:40 2019] [error] [client 195.208.220.139] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://forum.site.com/index.php
Код
[Mon Mar 25 22:38:37 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://antispam by SMFRCclubclothes.xblognetwork.com
Код
[Mon Mar 25 22:38:37 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://antispam by SMFRCclubclothes.xblognetwork.com
Код
[Mon Mar 25 22:38:37 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://antispam by SMFRCclubclothes.xblognetwork.com
Код
[Mon Mar 25 22:38:40 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:40 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:40 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:42 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:42 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:42 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:42 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:42 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:42 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=register
Код
[Mon Mar 25 22:38:43 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=login
Код
[Mon Mar 25 22:38:43 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=login
Код
[Mon Mar 25 22:38:43 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=login
Код
[Mon Mar 25 22:38:44 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 51, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=login
Код
[Mon Mar 25 22:38:44 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/Sources) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 53, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=login
Код
[Mon Mar 25 22:38:44 2019] [error] [client 37.187.129.166] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/msdteam/data/www/forum.site.com/cache) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/forum.site.com/Settings.php on line 55, referer: http://forum.site.com/index.php?PHPSESSID=gmhd0g2f5ub0ao3p8sqeea4547&action=login



Ругается вот на эту часть кода:

Код
# Make sure the paths are correct... at least try to fix them.
Код
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
Код
 $boarddir = dirname(__FILE__);
Код
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
Код
 $sourcedir = $boarddir . '/Sources';
Код
if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
Код
 $cachedir = $boarddir . '/cache';


Как это исправить? Что ему не нравится?  wallbash


Vadim2268


Vadim2268

Вылез еще один глюк, в Админке не отображает название форума (Админка - Конфигурация - Настройки сервера - Общее)

Поля - Название форума пустое, а так же раздел - Поставить форум на техобслуживание, поля Заголовок и Сообщение тоже пустые.

Если ввожу туда значения и жму - Сохранить, все равно пустые. но в файле Settings.php все значения есть и на свмом форуме все отображается, глюк только в админке.

digger®

Цитата: Vadim2268 от 26 марта 2019, 10:25:23Вылез еще один глюк, в Админке не отображает название форума (Админка - Конфигурация - Настройки сервера - Общее)

Поля - Название форума пустое, а так же раздел - Поставить форум на техобслуживание, поля Заголовок и Сообщение тоже пустые.

Если ввожу туда значения и жму - Сохранить, все равно пустые. но в файле Settings.php все значения есть и на свмом форуме все отображается, глюк только в админке.

Такие проблемы когда форум в кодировке 1251 и php старше 5.3

Vadim2268