TPhpErrorException

Description

[Notice] Undefined index: HTTP_REFERER (@line 28 in file /srv/www/wordoftruth/public_html/protected/pages/Share.php).

Source File

/srv/www/wordoftruth/public_html/protected/pages/Share.php (28)

0017:             "messageField" => $this->message->ClientID
0018:          );
0019:          $jsonData = json_encode($data);
0020:         $script = "new Seed.Page.Share($jsonData);";
0021:          $this->Page->ClientScript->registerEndScript("init_share_page", $script);
0022:     }
0023:     
0024:     public function onLoad($param){
0025:         parent::onLoad($param);
0026:             
0027:         if(!$this->IsPostBack){    
0028: $this->setViewState("referer", $_SERVER['HTTP_REFERER']);
0029: } 0030: 0031: $this->previousPage = $this->getViewState("referer"); 0032: Prado::trace($this->previousPage, "General"); 0033: } 0034: 0035: /** 0036: * Event handler for send button 0037: */ 0038: public function sendMessage($sender, $param){ 0039: if(!$this->IsValid) return; 0040:

Stack Trace

#0 /srv/www/wordoftruth/public_html/protected/pages/Share.php(28): PradoBase::phpErrorHandler(8, 'Undefined index...', '/srv/www/wordof...', 28, Array)
#1 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(4198): Share->onLoad(NULL)
#2 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(6211): TControl->loadRecursive()
#3 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(6203): TPage->processNormalRequest(Object(THtmlWriter))
#4 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(8323): TPage->run(Object(THtmlWriter))
#5 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(8289): TPageService->runPage(Object(Share), Array)
#6 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(9269): TPageService->run()
#7 /usr/local/frameworks/prado-3.1.7-prototype-1.6.1/framework/pradolite.php(8871): TApplication->runService()
#8 /srv/www/wordoftruth/public_html/index.php(23): TApplication->run()
#9 {main}
2010-09-07 16:36 Apache/2.2.14 (Ubuntu) PRADO/3.1.7