PHP warning

include(DDmediaFile.php): failed to open stream: No such file or directory

/var/www/yiiMain/framework/YiiBase.php(418)

406                 {
407                     foreach(self::$_includePaths as $path)
408                     {
409                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
410                         if(is_file($classFile))
411                         {
412                             include($classFile);
413                             break;
414                         }
415                     }
416                 }
417                 else
418                     include($className.'.php');
419             }
420             else  // class name with namespace in PHP 5.3
421             {
422                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
423                 if(($path=self::getPathOfAlias($namespace))!==false)
424                     include($path.'.php');
425                 else
426                     return false;
427             }
428             return class_exists($className,false) || interface_exists($className,false);
429         }
430         return true;

Stack Trace

#2
+
 /var/www/html/testyiiproject3/protected/modules/media/models/DDMediaDirectory.php(51): spl_autoload_call("DDmediaFile")
46                             $dirs[$entryPathReal] = $this->getMediaStats($entryPath);
47                     } else {
48                         $dirs[$entryPathReal] = $this->getMediaStats($entryPath);
49                     }
50                 } else {
51                     $file = new DDmediaFile($entryPath);
52                     // File
53                     // dot file/hidden?
54                     if(substr($entry,0,1)=='.') {
55                         if($this->showHiddenFiles==true)
56                             $files[$entryPath] = $file->getMediaStats();
#3
+
 /var/www/html/testyiiproject3/protected/modules/media/controllers/DefaultController.php(97): DDMediaDirectory->listContent()
092         try {
093             
094             //$dir = new DDMediaDirectory($basePath.'/'.$path);
095             //die($basePath);
096             $dir = new DDMediaDirectory($basePath.'/');
097             $files = $dir->listContent();
098             //echo '<pre>';print_r($files);die;
099         } catch (Exception $e) {
100             Yii::app()->user->setFlash('error',$e->getMessage());
101             $dir = new DDMediaDirectory($basePath.'/'.$defaultPath);
102             $files = $dir->listContent();
#11
+
 /var/www/html/testyiiproject3/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
14 
2013-03-22 15:28:02 Apache/2.2.15 (CentOS) Yii Framework/1.1.10