TPhpErrorException

Description

[Warning] Cannot modify header information - headers already sent by (output started at /home/epromedi/www/legionowo/protected/src/model/SRWUser.php:45) (@line 520 in file /home/epromedi/www/legionowo/prado/Web/THttpResponse.php).

Source File

/home/epromedi/www/legionowo/prado/Web/THttpResponse.php (520)

0509:             $this->sendHttpHeader();
0510:     }
0511: 
0512:     /**
0513:      * Send the HTTP header with the status code (defaults to 200) and status reason (defaults to OK)
0514:      */
0515:     protected function sendHttpHeader()
0516:     {
0517:         if (($version=$this->getRequest()->getHttpProtocolVersion())==='')
0518:             header (' ', true, $this->_status);
0519:         else
0520: header($version.' '.$this->_status.' '.$this->_reason, true, $this->_status);
0521: $this->_httpHeaderSent = true; 0522: } 0523: 0524: /** 0525: * Ensures that the HTTP header with the status code and status reason are sent 0526: */ 0527: protected function ensureContentTypeHeaderSent() 0528: { 0529: if (!$this->_contentTypeHeaderSent) 0530: $this->sendContentTypeHeader(); 0531: } 0532:

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'Cannot modify h...', '/home/epromedi/...', 520, Array)
#1 /home/epromedi/www/legionowo/prado/Web/THttpResponse.php(520): header('HTTP/1.1 401 Un...', true, 401)
#2 /home/epromedi/www/legionowo/prado/Web/THttpResponse.php(509): THttpResponse->sendHttpHeader()
#3 /home/epromedi/www/legionowo/prado/Web/THttpResponse.php(471): THttpResponse->ensureHttpHeaderSent()
#4 /home/epromedi/www/legionowo/prado/Web/THttpResponse.php(483): THttpResponse->ensureHeadersSent()
#5 /home/epromedi/www/legionowo/prado/Web/THttpResponse.php(463): THttpResponse->flushContent(false)
#6 /home/epromedi/www/legionowo/prado/TApplication.php(1226): THttpResponse->flush(false)
#7 /home/epromedi/www/legionowo/prado/TApplication.php(1235): TApplication->flushOutput(false)
#8 /home/epromedi/www/legionowo/prado/TApplication.php(414): TApplication->onEndRequest()
#9 /home/epromedi/www/legionowo/index.php(9): TApplication->run()
#10 {main}
2025-12-07 11:05 Apache PRADO/3.2.1