TPhpErrorException

Description

[Notice] Undefined offset: 1 (@line 34 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 (34)

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: } 0038: $date = explode (" ", $this->_post[0]->post_date); 0039: //$this->SourceTemplateControl->vlogTitle->Text = "hola"; 0040: $this->post_uri_title->NavigateUrl= "/blog/post/".$this->_post[0]->post_url; 0041: $this->post_uri_title->Text = $this->_post[0]->post_title; 0042: $this->post_date_translated->Text = $this->CommonModule->mysql_to_date_extended($date[0]); 0043: $this->post_category_name->Text = $this->DataAccess->queryCategoryNameById($this->_post[0]->post_category_id); 0044: $this->post_hits->Text = $this->_post[0]->post_hits; 0045: $this->post_excerpt->Text = $this->_post[0]->post_excerpt; 0046: $this->post_content->Text = $this->_post[0]->post_content;

Stack Trace

#0 /var/www/www.fluzo.org/htdocs/protected/Pages/Blog/vLogPostPage.php(34): PradoBase::phpErrorHandler(8, 'Undefined offse...', '/var/www/www.fl...', 34, 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-06 22:45 lighttpd/1.4.26 PRADO/3.1.4