The problem doesn't look like it has anything to do with the framework you're using - the vendor class raising the error doesn't depend on any (relevant) external configuration.
There's a configuration or application error
But it's not the open_basedir
settting. (which so long as it includes /home/00000/domains/test.com/html/
should be no problem).
The file raising the error is attempting to access a path that is (correctly) causing problems:
Warning (2): file_exists(): open_basedir restriction in effect.
File(/home/00000/domains/test.com/html/app/webroot/index.php/attachments/view/5)
^^^^^^^^^
is not within the allowed path(s): (/home/00000/domains)
[APP/Plugin/Timthumb/Vendor/timthumb.php, line 896
The path collides with a file, it's not possible to be a read/writable path even if open base dir were to permit it.
Identify the reason
The base path used is derived from server variables - does it contain index.php
? :
protected function calcDocRoot(){
$docRoot = @$_SERVER['DOCUMENT_ROOT'];
if (defined('LOCAL_FILE_BASE_DIRECTORY')) {
$docRoot = LOCAL_FILE_BASE_DIRECTORY;
}
if(!isset($docRoot)){
$this->debug(3, "DOCUMENT_ROOT is not set. This is probably windows. Starting search 1.");
if(isset($_SERVER['SCRIPT_FILENAME'])){
$docRoot = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
$this->debug(3, "Generated docRoot using SCRIPT_FILENAME and PHP_SELF as: $docRoot");
}
}
if(!isset($docRoot)){
$this->debug(3, "DOCUMENT_ROOT still is not set. Starting search 2.");
if(isset($_SERVER['PATH_TRANSLATED'])){
$docRoot = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
$this->debug(3, "Generated docRoot using PATH_TRANSLATED and PHP_SELF as: $docRoot");
}
}
if($docRoot && $_SERVER['DOCUMENT_ROOT'] != '/'){ $docRoot = preg_replace('/\/$/', '', $docRoot); }
$this->debug(3, "Doc root is: " . $docRoot);
$this->docRoot = $docRoot;
}
If index.php
doesn't come from the docRoot
value - it's in the passed argument $src
. Identify why or how $src
contains an invalid path and correct the application code appropriately.