Página 1 de 1

open_basedir restriction in effect

Enviado: 12 Abr 2016, 14:47
por InteLLectuS
Pessoal,

Acabei de instalar a versão 2.2.0.0 e fica aparecendo a seguinte mensagem no topo da página e do admin, o que pode ser?

Warning: file_exists(): open_basedir restriction in effect. File(C:/Inetpub/vhosts/meusite.com.br/httpdocs/system/../../vendor/autoload.php) is not within the allowed path(s): (C:\Inetpub\vhosts\meusite.com.br\httpdocs\;C:\Windows\Temp\) in C:\Inetpub\vhosts\meusite.com.br\httpdocs\system\startup.php on line 87

Obrigado.

Re: open_basedir restriction in effect

Enviado: 12 Abr 2016, 15:45
por valdeir2000
O problema pode ser esse ../../ no path.

Re: open_basedir restriction in effect

Enviado: 12 Abr 2016, 16:57
por InteLLectuS
O pior é que não tem em canto algum isso.

Eu resolvi comentando as seguintes linhas no arquivo "startup.php":
// Autoloader
//if (file_exists(DIR_SYSTEM . '../../vendor/autoload.php')) {
// require_once(DIR_SYSTEM . '../../vendor/autoload.php');
//}

Acho que não terei problemas, pois esta pasta "vendor" nem consta.

Obrigado.

Re: open_basedir restriction in effect

Enviado: 12 Abr 2016, 17:57
por valdeir2000
InteLLectuS escreveu:O pior é que não tem em canto algum isso.

Eu resolvi comentando as seguintes linhas no arquivo "startup.php":
// Autoloader
//if (file_exists(DIR_SYSTEM . '../../vendor/autoload.php')) {
// require_once(DIR_SYSTEM . '../../vendor/autoload.php');
//}

Acho que não terei problemas, pois esta pasta "vendor" nem consta.

Obrigado.
Tem sim, você mesmo já falou o arquivo "startup.php", recomendo apenas remover o ../../ pois algum módulo pode utilizar a pasta vendor.
Código: Selecionar todos
 Autoloader
if (file_exists(DIR_SYSTEM . 'vendor/autoload.php')) {
	require_once(DIR_SYSTEM . 'vendor/autoload.php');
}