PHP warning

is_file(): open_basedir restriction in effect. File(/www/server/php/53/lib/php/PHPExcel_Shared_ZipStreamWrapper.php) is not within the allowed path(s): (/www/wwwroot/186086/:/tmp/:/proc/)

/www/wwwroot/186086/framework/YiiBase.php(414)

402         elseif(isset(self::$_coreClasses[$className]))
403             include(YII_PATH.self::$_coreClasses[$className]);
404         else
405         {
406             // include class file relying on include_path
407             if(strpos($className,'\\')===false)  // class without namespace
408             {
409                 if(self::$enableIncludePath===false)
410                 {
411                     foreach(self::$_includePaths as $path)
412                     {
413                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
414                         if(is_file($classFile))
415                         {
416                             include($classFile);
417                             if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
418                                 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
419                                     '{class}'=>$className,
420                                     '{file}'=>$classFile,
421                                 )));
422                             break;
423                         }
424                     }
425                 }
426                 else

Stack Trace

#2
+
 /www/wwwroot/186086/sqt/protected/extensions/PHPExcel/PHPExcel/Autoloader.php(31): spl_autoload_call("PHPExcel_Shared_ZipStreamWrapper")
26  */
27 
28 PHPExcel_Autoloader::Register();
29 //    As we always try to run the autoloader before anything else, we can use it to do a few
30 //        simple checks and initialisations
31 PHPExcel_Shared_ZipStreamWrapper::register();
32 // check mbstring.func_overload
33 if (ini_get('mbstring.func_overload') & 2) {
34     throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
35 }
36 PHPExcel_Shared_String::buildCharacterSets();
#3
+
 /www/wwwroot/186086/sqt/protected/extensions/PHPExcel/PHPExcel.php(32): require("/www/wwwroot/186086/sqt/protected/extensions/PHPExcel/PHPExcel/A...")
27 
28 
29 /** PHPExcel root directory */
30 if (!defined('PHPEXCEL_ROOT')) {
31     define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
32     require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
33 }
34 
35 
36 /**
37  * PHPExcel
#5
+
 /www/wwwroot/186086/sqt/protected/controllers/PiliangdanController.php(240): YiiBase::import("application.extensions.PHPExcel.PHPExcel", 1)
235         $data =  array();
236         if(!empty($rawDatas))
237         {
238             $url='uploads/piliangdan'.$rawDatas[0]['wenjian'];
239             Yii::$enableIncludePath = false;  
240             Yii::import('application.extensions.PHPExcel.PHPExcel', 1); 
241             
242             //读取excel文件内容,并保存到一个数组内
243             
244             $PHPExcel = new PHPExcel(); 
245             
2024-03-29 07:42:49 nginx/1.16.1 Yii Framework/1.1.14