TPhpErrorException

Description

[Notice] Uninitialized string offset: 0 (@line 429 in file /apps/www/simpus/framework/prado v3.2.4/Web/THttpResponse.php).

Source File

/apps/www/simpus/framework/prado v3.2.4/Web/THttpResponse.php (429)

0418:      * You can set the set {@link setStatusCode StatusCode} to a value between 300 and 399 before
0419:      * calling this function to change the type of redirection.
0420:      * If not specified, StatusCode will be 302 (Found) by default
0421:      *
0422:      * @param string URL to be redirected to. If the URL is a relative one, the base URL of
0423:      * the current request will be inserted at the beginning.
0424:      */
0425:     public function httpRedirect($url)
0426:     {
0427:         $this->ensureHeadersSent();
0428: 
0429: if($url[0]==='/')
0430: $url=$this->getRequest()->getBaseUrl().$url; 0431: if ($this->_status >= 300 && $this->_status < 400) 0432: // The status code has been modified to a valid redirection status, send it 0433: header('Location: '.str_replace('&amp;','&',$url), true, $this->_status); 0434: else 0435: header('Location: '.str_replace('&amp;','&',$url)); 0436: 0437: if(!$this->getApplication()->getRequestCompleted()) 0438: $this->getApplication()->onEndRequest(); 0439: 0440: exit(); 0441: }

Stack Trace

#0 /apps/www/simpus/framework/prado v3.2.4/Web/THttpResponse.php(429): PradoBase::phpErrorHandler(8, 'Uninitialized s...', '/apps/www/simpu...', 429, Array)
#1 /apps/www/simpus/framework/prado v3.2.4/Web/THttpResponse.php(410): THttpResponse->httpRedirect('')
#2 /apps/www/simpus/protected/Pages/web/Baca.php(19): THttpResponse->redirect('')
#3 /apps/www/simpus/framework/prado v3.2.4/Web/UI/TControl.php(1293): Baca->onLoad(NULL)
#4 /apps/www/simpus/framework/prado v3.2.4/Web/UI/TPage.php(220): TControl->loadRecursive()
#5 /apps/www/simpus/framework/prado v3.2.4/Web/UI/TPage.php(201): TPage->processNormalRequest(Object(THtmlWriter))
#6 /apps/www/simpus/framework/prado v3.2.4/Web/Services/TPageService.php(522): TPage->run(Object(THtmlWriter))
#7 /apps/www/simpus/framework/prado v3.2.4/Web/Services/TPageService.php(468): TPageService->runPage(Object(Baca), Array)
#8 /apps/www/simpus/framework/prado v3.2.4/TApplication.php(1219): TPageService->run()
#9 /apps/www/simpus/framework/prado v3.2.4/TApplication.php(408): TApplication->runService()
#10 /apps/www/simpus/public/index.php(21): TApplication->run()
#11 {main}
2020-09-21 19:12 MKRI.ID PRADO/3.2.4