Shell Command not working.
From the www/demo2 folder, I run: yiic shell
and get this error:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>
PHP Error</title>
<style type="text/css">
/*<![CDATA[*/
body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
p {font-family:"Verdana";font-size:9pt;}
pre {font-family:"Lucida Console";font-size:10pt;}
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
.message {color: maroon;}
.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffee;}
.error {background-color: #ffeeee;}
/*]]>*/
</style>
</head>
<body>
<h1>PHP Error</h1>
<h3>Description</h3>
<p class="message">
date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for '-7.0/DST' instead</p>
<h3>Source File</h3>
<p>
C:\Program Files\EasyPHP-5.3.3\www\demo2\protected\views\layouts\main.php(47)</p>
<div class="source">
<pre>
00035: array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
00036: ),
00037: )); ?>
00038: </div><!-- mainmenu -->
00039:
00040: <?php $this->widget('zii.widgets.CBreadcrumbs', array(
00041: 'links'=>$this->breadcrumbs,
00042: )); ?><!-- breadcrumbs -->
00043:
00044: <?php echo $content; ?>
00045:
00046: <div id="footer">
<div class="error">00047: Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
</div>00048: All Rights Reserved.<br/>
00049: <?php echo Yii::powered(); ?>
00050: </div><!-- footer -->
00051:
00052: </div><!-- page -->
00053:
00054: </body>
00055: </html></pre>
</div><!-- end of source -->
<h3>Stack Trace</h3>
<div class="callstack">
<pre>
#0 C:\Program Files\EasyPHP-5.3.3\www\demo2\protected\views\layouts\main.php(47): date()
#1 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CBaseController.php(119): require()
#2 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CBaseController.php(88): SiteController->renderInternal()
#3 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\widgets\CContentDecorator.php(78): SiteController->renderFile()
#4 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\widgets\CContentDecorator.php(56): CContentDecorator->decorate()
#5 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\widgets\COutputProcessor.php(45): CContentDecorator->processOutput()
#6 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CBaseController.php(199): CContentDecorator->run()
#7 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CBaseController.php(294): SiteController->endWidget()
#8 C:\Program Files\EasyPHP-5.3.3\www\demo2\protected\views\layouts\column1.php(7): SiteController->endContent()
#9 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CBaseController.php(119): require()
#10 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CBaseController.php(88): SiteController->renderInternal()
#11 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CController.php(741): SiteController->renderFile()
#12 C:\Program Files\EasyPHP-5.3.3\www\demo2\protected\controllers\SiteController.php(32): SiteController->render()
#13 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\actions\CInlineAction.php(50): SiteController->actionIndex()
#14 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CController.php(300): CInlineAction->run()
#15 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CController.php(278): SiteController->runAction()
#16 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CController.php(257): SiteController->runActionWithFilters()
#17 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CWebApplication.php(324): SiteController->run()
#18 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\web\CWebApplication.php(121): CWebApplication->runController()
#19 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\base\CApplication.php(135): CWebApplication->processRequest()
#20 C:\Program Files\EasyPHP-5.3.3\www\demo2\index.php(13): CWebApplication->run()
#21 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\cli\commands\ShellCommand.php(78): require()
#22 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\console\CConsoleCommandRunner.php(62): ShellCommand->run()
#23 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\console\CConsoleApplication.php(88): CConsoleCommandRunner->run()
#24 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\base\CApplication.php(135): CConsoleApplication->processRequest()
#25 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\yiic.php(33): CConsoleApplication->run()
#26 C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\yiic(15): require_once()
</pre>
</div><!-- end of callstack -->
<div class="version">
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for '-7.0/DST' instead in C:\Program Files\EasyPHP-5.3.3\www\yii-1.1.4.r2429\framework\views\exception.php on line 71
2010-09-26 16:39:33 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.4</div>
</body>
</html>