Hi, when I try to navigate to the contact or login page I get this error. I get a different error for the about page, but I think it might be related. Not sure what is happening. Here’s my protected/config/main.php. Maybe there is something wrong there. Index.php looks fine and has the bootstrap theme. Responsive and everything!
PHP warning
include(ContactForm) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
C:\wamp\www\yii\framework\YiiBase.php(421)
409 {
410 include($classFile);
411 if(YII_DEBUG && basename(realpath($classFile))!==$className.’.php’)
412 throw new CException(Yii::t(‘yii’,‘Class name “{class}” does not match class file “{file}”.’, array(
413 ‘{class}’=>$className,
414 ‘{file}’=>$classFile,
415 )));
416 break;
417 }
418 }
419 }
420 else
421 include($className.’’);
422 }
423 else // class name with namespace in PHP 5.3
424 {
425 $namespace=str_replace(’\\’,’.’,ltrim($className,’\\’));
426 if(($path=self::getPathOfAlias($namespace))!==false)
427 include($path.’.php’);
428 else
429 return false;
430 }
431 return class_exists($className,false) || interface_exists($className,false);
432 }
433 return true;
Stack Trace
#0
C:\wamp\www\yii\framework\YiiBase.php(421): YiiBase::autoload()
#1
unknown(0): YiiBase::autoload("ContactForm")
#2
–
C:\wamp\www\yii\WebRoot\leonecreative\protected\controllers\SiteController.php(54): spl_autoload_call("ContactForm")
49 /**
50 * Displays the contact page
51 */
52 public function actionContact()
53 {
54 $model=new ContactForm;
55 if(isset($_POST[‘ContactForm’]))
56 {
57 $model->attributes=$_POST[‘ContactForm’];
58 if($model->validate())
59 {
#3
C:\wamp\www\yii\framework\web\actions\CInlineAction.php(49): SiteController->actionContact()
#4
C:\wamp\www\yii\framework\web\CController.php(308): CInlineAction->runWithParams(array())
#5
C:\wamp\www\yii\framework\web\CController.php(286): CController->runAction(CInlineAction)
#6
C:\wamp\www\yii\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array())
#7
C:\wamp\www\yii\framework\web\CWebApplication.php(282): CController->run("contact")
#8
C:\wamp\www\yii\framework\web\CWebApplication.php(141): CWebApplication->runController("site/contact")
#9
C:\wamp\www\yii\framework\base\CApplication.php(169): CWebApplication->processRequest()
#10
–
C:\wamp\www\yii\WebRoot\leonecreative\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();
2013-03-03 20:55:53 Apache/2.2.22 (Win64) PHP/5.3.13 Yii Framework/1.1.13
Application Log
Timestamp Level Category Message
20:55:53.176956 trace system.CModule
Loading "log" application component
in C:\wamp\www\yii\WebRoot\leonecreative\index.php (13)
20:55:53.179033 trace system.CModule
Loading "request" application component
in C:\wamp\www\yii\WebRoot\leonecreative\index.php (13)
20:55:53.180655 trace system.CModule
Loading "urlManager" application component
in C:\wamp\www\yii\WebRoot\leonecreative\index.php (13)
20:55:53.185350 error php
include(ContactForm) [<a href=‘function.include’>function.include</a>]:
failed to open stream: No such file or directory
(C:\wamp\www\yii\framework\YiiBase.php:421)
Stack trace:
#0
C:\wamp\www\yii\WebRoot\leonecreative\protected\controllers\SiteController.php(54):
spl_autoload_call()
#1 C:\wamp\www\yii\framework\web\actions\CInlineAction.php(49):
SiteController->actionContact()
#2 C:\wamp\www\yii\framework\web\CController.php(308):
CInlineAction->runWithParams()
#3 C:\wamp\www\yii\framework\web\CController.php(286):
SiteController->runAction()
#4 C:\wamp\www\yii\framework\web\CController.php(265):
SiteController->runActionWithFilters()
#5 C:\wamp\www\yii\framework\web\CWebApplication.php(282):
SiteController->run()
#6 C:\wamp\www\yii\framework\web\CWebApplication.php(141):
CWebApplication->runController()
#7 C:\wamp\www\yii\framework\base\CApplication.php(169):
CWebApplication->processRequest()
#8 C:\wamp\www\yii\WebRoot\leonecreative\index.php(13):
CWebApplication->run()
REQUEST_URI=/yii/WebRoot/leonecreative/index.php/site/contact
in
C:\wamp\www\yii\WebRoot\leonecreative\protected\controllers\SiteController.php
(54)
in C:\wamp\www\yii\WebRoot\leonecreative\index.php (13)
20:55:53.185674 trace system.CModule
Loading "errorHandler" application component
in
C:\wamp\www\yii\WebRoot\leonecreative\protected\controllers\SiteController.php
(54)
in C:\wamp\www\yii\WebRoot\leonecreative\index.php (13)
20:55:53.189830 trace system.CModule
Loading "themeManager" application component
in
C:\wamp\www\yii\WebRoot\leonecreative\protected\controllers\SiteController.php
(54)
in C:\wamp\www\yii\WebRoot\leonecreative\index.php (13)