Error is_file(): open_basedir restriction in effect. File(....................) is not within the allowed path(s): (.........................)

108 views
Skip to first unread message

Cosmin Neagu 1

unread,
Feb 12, 2019, 10:49:40 AM2/12/19
to f3-fra...@googlegroups.com
Hello,

I get the following error
is_file(): open_basedir restriction in effect. File(/home/www/user_name/htdocs/_maincode/lib/fatfreeClass.php) is not within the allowed path(s): (/home/WWW/user_name)

The class fatfreeClass.php is loaded from AUTOLOAD folder set in config.ini.
The corect path to the website si home/WWW/user_name (WWW uppercase)
The problem is that the f3 autoload class (witch loads the fatfreeClass.php) is changeing the path to all lowercase and I get that error.
Any idea how to fix this?.. I don't want to modify the fatfree base.php class (where I think is the problem)

ikkez

unread,
Feb 12, 2019, 12:08:34 PM2/12/19
to Fat-Free Framework
That's just a warning and you can probably ignore it. You can get around that by adjusting the error level. Set


error_reporting((
E_ALL|E_STRICT)&~(E_NOTICE|E_USER_NOTICE|E_WARNING|E_USER_WARNING));


in your index.php after including F3

Cosmin Neagu 1

unread,
Feb 12, 2019, 12:22:48 PM2/12/19
to Fat-Free Framework
I have error_reporting set to 0.

The error appears in apache error log.
This is not a solution..
Reply all
Reply to author
Forward
0 new messages