PHP notice

Undefined variable: value

/home/gigatech/2.gigatech.z8.ru/docs/protected/components/EyiiVersion.php(18)

06     {
07         $file=dirname(Yii::app()->basePath).'/yii/YiiBase.php';
08         $fh = fopen($file, 'r');
09         $flag = true;
10         while(($rec = fgets($fh)) && $flag) {
11             if (strpos($rec, '$Id:')) {
12                 $tok = explode(' ', $rec);
13                 $value = $tok[5];
14                 $flag = false;
15             }
16         }
17         fclose($fh);
18         return $value;
19     }
20 }

Stack Trace

#0
+
 /home/gigatech/2.gigatech.z8.ru/docs/protected/views/layouts/main.php(72): EyiiVersion::getVersion()
67   <br class="clearfloat" />
68 
69   <div id="footer" style="position: relative;">
70     <p><?php echo Yii::app()->params['copyrightInfo']; ?><br/>
71     All Rights Reserved.<br/>
72     <?php echo Yii::powered(); echo Yii::getVersion()."&nbsp;(r".EyiiVersion::getVersion().")"; ?>
73     <?php print(sprintf(", Executed in %.2f[msec]\n", Yii::app()->timer->getTimer())); ?></p><br/>
74     <div class="ants" style="width:39px;height:32px;background-image:url(<?php echo Yii::app()->request->baseUrl;?>/systemImages/ants.png);background-repeat:no-repeat;position:absolute;"></div>
75 <script type="text/javascript">
76 /*<![CDATA[*/
77 // ants animation
#4
+
 /home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php(357): CController->render("month", array("posts" => array(), "pages" => CPagination, "firstDay" => 1233435600))
352 
353           $this->render('month',array(
354                                       'posts'=>$posts,
355                                       'pages'=>$pages,
356                                       'firstDay'=> $firstDay,
357                                       ));
358 
359 
360         }
361 
362         /**
#17
+
 /home/gigatech/2.gigatech.z8.ru/docs/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();
2024-03-28 18:37:11 Apache/2.4.56 (Red Hat Enterprise Linux 8) PHP/5.2.17 Yii Framework/1.1.13
Application Log
Timestamp Level Category Message
18:37:11.776412 trace system.CModule
Loading "log" application component
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.777084 trace system.CModule
Loading "request" application component
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.778023 trace system.CModule
Loading "urlManager" application component
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.782494 trace system.web.filters.CFilterChain
Running filter PostController.filteraccessControl()
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.782795 trace system.CModule
Loading "user" application component
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.783447 trace system.CModule
Loading "session" application component
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.787242 trace system.CModule
Loading "db" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (15)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(347)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.787790 trace system.db.CDbConnection
Opening DB connection
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (15)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(347)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.791263 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM `Post`
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (15)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(347)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.805424 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE `Post`
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (15)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(347)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.805634 trace system.db.ar.CActiveRecord
Post.count()
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(347)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.806719 trace system.db.CDbCommand
Querying SQL: SELECT COUNT(*) FROM `Post` `t` WHERE status=1 AND createTime
> :time1 AND createTime < :time2
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(347)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.806958 trace system.db.ar.CActiveRecord
Post.findAll()
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(351)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.809344 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM `User`
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(351)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.821717 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE `User`
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(351)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.822137 trace system.db.CDbCommand
Querying SQL: SELECT `t`.`id` AS `t0_c0`, `t`.`title` AS `t0_c1`,
`t`.`content` AS `t0_c2`, `t`.`contentDisplay` AS `t0_c3`, `t`.`tags` AS
`t0_c4`, `t`.`status` AS `t0_c5`, `t`.`createTime` AS `t0_c6`,
`t`.`updateTime` AS `t0_c7`, `t`.`commentCount` AS `t0_c8`, `t`.`authorId`
AS `t0_c9`, `author`.`id` AS `t1_c0`, `author`.`username` AS `t1_c1`,
`author`.`password` AS `t1_c2`, `author`.`email` AS `t1_c3`,
`author`.`profile` AS `t1_c4` FROM `Post` `t`  LEFT OUTER JOIN `User`
`author` ON (`t`.`authorId`=`author`.`id`)  WHERE (status=1 AND createTime
> :time1 AND createTime < :time2) ORDER BY createTime DESC LIMIT 10
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(351)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.822530 trace system.CModule
Loading "widgetFactory" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/post/month.php (10)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.823375 trace system.CModule
Loading "coreMessages" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/post/month.php (10)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.826313 trace system.CModule
Loading "assetManager" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/post/month.php (10)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.826776 trace system.CModule
Loading "clientScript" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/post/month.php (10)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.828043 trace system.CModule
Loading "widgetCollapse" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/layouts/main.php
(18)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.829143 trace system.CModule
Loading "highslide" application component
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/layouts/main.php
(19)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
in /home/gigatech/2.gigatech.z8.ru/docs/index.php (13)
18:37:11.831980 trace system.db.ar.CActiveRecord
Post.findAll()
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (180)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/Calendar.php
(45)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/Portlet.php
(27)
18:37:11.832108 trace system.db.CDbCommand
Querying SQL: SELECT * FROM `Post` `t` WHERE createTime > :time1 AND
createTime < :time2
                                        AND status=1 ORDER BY t.createTime
DESC
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (180)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/Calendar.php
(45)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/Portlet.php
(27)
18:37:11.832870 trace system.db.ar.CActiveRecord
Post.findAll()
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (153)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/MonthlyArchives.php
(10)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/monthlyArchives.php
(2)
18:37:11.832969 trace system.db.CDbCommand
Querying SQL: SELECT * FROM `Post` `t` WHERE t.status=1 ORDER BY
t.createTime DESC LIMIT 9223372036854775807
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (153)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/MonthlyArchives.php
(10)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/monthlyArchives.php
(2)
18:37:11.833791 trace system.db.ar.CActiveRecord
Post.findAll()
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (153)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/RecentPosts.php
(9)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/recentPosts.php
(2)
18:37:11.833873 trace system.db.CDbCommand
Querying SQL: SELECT * FROM `Post` `t` WHERE t.status=1 ORDER BY
t.createTime DESC LIMIT 10
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Post.php (153)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/RecentPosts.php
(9)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/recentPosts.php
(2)
18:37:11.834584 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM `Comment`
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Comment.php (18)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/RecentComments.php
(9)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/recentComments.php
(2)
18:37:11.847796 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE `Comment`
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Comment.php (18)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/RecentComments.php
(9)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/recentComments.php
(2)
18:37:11.848018 trace system.db.ar.CActiveRecord
Comment.findAll()
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Comment.php (130)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/RecentComments.php
(9)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/recentComments.php
(2)
18:37:11.848468 trace system.db.CDbCommand
Querying SQL: SELECT `t`.`id` AS `t0_c0`, `t`.`content` AS `t0_c1`,
`t`.`contentDisplay` AS `t0_c2`, `t`.`status` AS `t0_c3`, `t`.`createTime`
AS `t0_c4`, `t`.`author` AS `t0_c5`, `t`.`email` AS `t0_c6`, `t`.`url` AS
`t0_c7`, `t`.`postId` AS `t0_c8`, `post`.`id` AS `t1_c0`, `post`.`title` AS
`t1_c1`, `post`.`content` AS `t1_c2`, `post`.`contentDisplay` AS `t1_c3`,
`post`.`tags` AS `t1_c4`, `post`.`status` AS `t1_c5`, `post`.`createTime`
AS `t1_c6`, `post`.`updateTime` AS `t1_c7`, `post`.`commentCount` AS
`t1_c8`, `post`.`authorId` AS `t1_c9` FROM `Comment` `t`  INNER JOIN `Post`
`post` ON (`t`.`postId`=`post`.`id`)  WHERE (t.status=1) ORDER BY
t.createTime DESC LIMIT 10
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Comment.php (130)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/RecentComments.php
(9)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/recentComments.php
(2)
18:37:11.849203 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM `Tag`
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Tag.php (11)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/tagCloud.php
(1)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/TagCloud.php
(14)
18:37:11.861371 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE `Tag`
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Tag.php (11)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/tagCloud.php
(1)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/TagCloud.php
(14)
18:37:11.861543 trace system.db.CDbCommand
Querying SQL: 	SELECT name, COUNT(postId) AS weight
	FROM Tag, PostTag
	WHERE Tag.id=PostTag.tagId
	GROUP BY name
	HAVING COUNT(postId)>0
	ORDER BY weight DESC
	LIMIT 20
in /home/gigatech/2.gigatech.z8.ru/docs/protected/models/Tag.php (39)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/views/tagCloud.php
(1)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/components/TagCloud.php
(14)
18:37:11.874073 error php
Undefined variable: value
(/home/gigatech/2.gigatech.z8.ru/docs/protected/components/EyiiVersion.php:18)
Stack trace:
#0 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CBaseController.php(95):
PostController->renderInternal()
#1 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CController.php(784):
PostController->renderFile()
#2
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php(357):
PostController->render()
#3
/home/gigatech/2.gigatech.z8.ru/docs/yii/web/actions/CInlineAction.php(49):
PostController->actionPostedInMonth()
#4 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CController.php(308):
CInlineAction->runWithParams()
#5
/home/gigatech/2.gigatech.z8.ru/docs/yii/web/filters/CFilterChain.php(133):
PostController->runAction()
#6 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/filters/CFilter.php(40):
CFilterChain->run()
#7 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CController.php(1145):
CAccessControlFilter->filter()
#8
/home/gigatech/2.gigatech.z8.ru/docs/yii/web/filters/CInlineFilter.php(58):
PostController->filterAccessControl()
#9
/home/gigatech/2.gigatech.z8.ru/docs/yii/web/filters/CFilterChain.php(130):
CInlineFilter->filter()
#10 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CController.php(291):
CFilterChain->run()
#11 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CController.php(265):
PostController->runActionWithFilters()
#12 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CWebApplication.php(282):
PostController->run()
#13 /home/gigatech/2.gigatech.z8.ru/docs/yii/web/CWebApplication.php(141):
CWebApplication->runController()
#14 /home/gigatech/2.gigatech.z8.ru/docs/yii/base/CApplication.php(169):
CWebApplication->processRequest()
#15 /home/gigatech/2.gigatech.z8.ru/docs/index.php(13):
CWebApplication->run()
REQUEST_URI=/month/1230757200/n
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/EyiiVersion.php
(18)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/layouts/main.php
(72)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)
18:37:11.874202 trace system.CModule
Loading "errorHandler" application component
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/components/EyiiVersion.php
(18)
in /home/gigatech/2.gigatech.z8.ru/docs/protected/views/layouts/main.php
(72)
in
/home/gigatech/2.gigatech.z8.ru/docs/protected/controllers/PostController.php
(357)