PHP warning

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

/home/nhaxuong/domains/thietkenhaxuong.net.vn/public_html/library/framework/YiiBase.php(427)

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
427                     include($className.'.php');
428             }
429             else  // class name with namespace in PHP 5.3
430             {
431                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
432                 if(($path=self::getPathOfAlias($namespace))!==false)
433                     include($path.'.php');
434                 else
435                     return false;
436             }
437             return class_exists($className,false) || interface_exists($className,false);
438         }
439         return true;

Stack Trace

#2
+
 /home/nhaxuong/domains/thietkenhaxuong.net.vn/public_html/protected/controllers/user/SiteController.php(213): spl_autoload_call("CHtmlException")
208     public function actionProduct($slug)
209     {
210         $model = Yii::app()->db->createCommand('select * from `'.MProducts::model()->tableName().'` where `slug` = "'.CHtml::encode($slug).'" and `status` = 1')->queryRow();
211         if(!$model)
212         {
213             throw new CHtmlException(404,'Không tìm thấy nội dung');
214         }
215         $this->setTitleDes($model['name'],$model['meta_des'],$model['meta_key']);
216         $sampleModels = Yii::app()->db->createCommand('select * from `'.MProducts::model()->tableName().'` where `status` = 1 and `parent` = '.$model['parent'].' order by `id` asc limit 0, 6')->queryAll();
217         $this->render('product',array('model'=>$model,'models'=>$sampleModels));
218     }
#12
+
 /home/nhaxuong/domains/thietkenhaxuong.net.vn/public_html/protected/libraries/WebApplication.php(13): CApplication->run()
08      public function runEnd($value)
09      {
10          $this->__name = $value;
11          $this->onRunEnd = array(&$this,'changePath');
12          $this->onRunEnd(new CEvent($this->owner));
13          $this->owner->run();
14      }
15      public function onRunEnd(CEvent $event)
16      {
17          $this->raiseEvent('onRunEnd',$event);
18      }
#14
+
 /home/nhaxuong/domains/thietkenhaxuong.net.vn/public_html/index.php(10): CComponent->__call("runEnd", array("user"))
05 // remove the following lines when in production mode
06 defined('YII_DEBUG') or define('YII_DEBUG',true);
07 // specify how many levels of call stack should be shown in each log message
08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
09 require_once($yii);
10 Yii::createWebApplication($config)->runEnd('user');
2024-03-29 11:41:31 Apache/2 Yii Framework/1.1.14