PHP warning

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

/home/shwashomes/public_html/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/shwashomes/public_html/themes/user/views/site/enquiry.php(58): spl_autoload_call("Test")
53 </div>
54 
55 <? if(!isset($_GET['type']) && !isset($_GET['package_id'])){?>
56 <div class="col-sm-12">
57     <?
58     $test=new Test;
59     $tests=$test->findAll(array("condition"=>"status='1'"));
60     ?>
61 <select class="contactTextField" name="Contact[test_id]">
62     <option value="">Select Test</option>
63     <? foreach($tests as $key=>$val){?>
#7
+
 /home/shwashomes/public_html/protected/controllers/SiteController.php(278): CController->render("enquiry", array("model" => Contact))
273 
274             }
275             }
276         }
277         }
278         $this->render('enquiry',array('model'=>$model));
279     }
280     public function actionEnquiry_ajax()
281     {
282      $this->layout="subpage";
283         $model=new Contact;
#15
+
 /home/shwashomes/public_html/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
13 
14 
15 
16 
2024-03-28 22:12:47 Apache Yii Framework/1.1.14