TPhpErrorException

Description

[Notice] Uninitialized string offset: 0 (@line 25 in file /var/www/www.fluzo.org/htdocs/protected/Pages/Blog/vLogPostPage.php).

Source File

/var/www/www.fluzo.org/htdocs/protected/Pages/Blog/vLogPostPage.php (25)

0014:         //if (is_numeric($this->Application->Request['post_url'])) {
0015:         //  $filter = "post_id='".$this->Application->Request['post_url']."'";
0016:         //} else {
0017:             $filter = "post_url='".$this->Application->Request['post_url']."'";
0018:         //  }
0019:       } else {
0020:           $this->Service->redirect('index.php');
0021:       }
0022:       $filter .= "AND post_status='public'";
0023:       $this->_post = $this->DataAccess->queryPosts($filter);
0024:       if ((strcmp($_SERVER['REMOTE_ADDR'], "10.12.34.1"))) {
0025: $this->DataAccess->addPostHit($this->_post[0]->post_id);
0026: } 0027: $filter = "comment_post_id='".$this->_post[0]->post_id."' AND comment_valid='1'"; 0028: $orderby = "comment_date"; 0029: $this->_comments = $this->DataAccess->queryComments($filter, $orderby); 0030: if ($this->_comments) { 0031: $len = count($this->_comments); 0032: for ($i = 0; $i < $len; $i++) { 0033: $ipaddr = explode(".", $this->_comments[$i]->comment_author_ipaddr); 0034: $this->_comments[$i]->comment_author_ipaddr = "$ipaddr[0].$ipaddr[1].$ipaddr[2]"; 0035: $this->_comments[$i]->comment_content = $this->CommonModule->mydecode($this->_comments[$i]->comment_content); 0036: } 0037: }

Stack Trace

#0 /var/www/www.fluzo.org/htdocs/protected/Pages/Blog/vLogPostPage.php(25): PradoBase::phpErrorHandler(8, 'Uninitialized s...', '/var/www/www.fl...', 25, Array)
#1 /var/www/prado/3.1.4/framework/Web/UI/TControl.php(1286): vLogPostPage->onLoad(NULL)
#2 /var/www/prado/3.1.4/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#3 /var/www/prado/3.1.4/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#4 /var/www/prado/3.1.4/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#5 /var/www/prado/3.1.4/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(vLogPostPage), Array)
#6 /var/www/prado/3.1.4/framework/TApplication.php(1095): TPageService->run()
#7 /var/www/prado/3.1.4/framework/TApplication.php(382): TApplication->runService()
#8 /var/www/www.fluzo.org/htdocs/index.php(25): TApplication->run()
#9 {main}
2010-09-03 12:36 lighttpd/1.4.26 PRADO/3.1.4