TPhpErrorException

Description

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

Source File

/apps/www/simpus/framework/Web/THttpResponse.php (414)

0403:      * You can set the set {@link setStatusCode StatusCode} to a value between 300 and 399 before
0404:      * calling this function to change the type of redirection.
0405:      * If not specified, StatusCode will be 302 (Found) by default
0406:      *
0407:      * @param string URL to be redirected to. If the URL is a relative one, the base URL of
0408:      * the current request will be inserted at the beginning.
0409:      */
0410:     public function httpRedirect($url)
0411:     {
0412:         if(!$this->getApplication()->getRequestCompleted())
0413:             $this->getApplication()->onEndRequest();
0414: if($url[0]==='/')
0415: $url=$this->getRequest()->getBaseUrl().$url; 0416: if ($this->_status >= 300 && $this->_status < 400) 0417: // The status code has been modified to a valid redirection status, send it 0418: header('Location: '.str_replace('&amp;','&',$url), true, $this->_status); 0419: else 0420: header('Location: '.str_replace('&amp;','&',$url)); 0421: 0422: exit(); 0423: } 0424: 0425: /** 0426: * Reloads the current page.

Stack Trace

#0 /apps/www/simpus/framework/Web/THttpResponse.php(414): PradoBase::phpErrorHandler(8, 'Uninitialized s...', '/apps/www/simpu...', 414, Array)
#1 /apps/www/simpus/framework/Web/THttpResponse.php(395): THttpResponse->httpRedirect('')
#2 /apps/www/simpus/protected/Pages/web/Baca.php(19): THttpResponse->redirect('')
#3 /apps/www/simpus/framework/Web/UI/TControl.php(1286): Baca->onLoad(NULL)
#4 /apps/www/simpus/framework/Web/UI/TPage.php(215): TControl->loadRecursive()
#5 /apps/www/simpus/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#6 /apps/www/simpus/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#7 /apps/www/simpus/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(Baca), Array)
#8 /apps/www/simpus/framework/TApplication.php(1095): TPageService->run()
#9 /apps/www/simpus/framework/TApplication.php(382): TApplication->runService()
#10 /apps/www/simpus/public/index.php(21): TApplication->run()
#11 {main}
2019-11-12 07:29 nginx/1.12.2 PRADO/3.1.10