Notice (8): Trying to get property of non-object [APP/Controller\TemplatesController.php, line 152]
Error: Unable to emit response; headers already sent

Unable to emit response; headers already sent RuntimeException

Documentation API

( ! ) Xdebug: user triggered in C:\wamp\www\visitkiplus.ru_new\cake2\src\Template\Error\error500.ctp on line 33
Call Stack
#TimeMemoryFunctionLocation
10.912418940712Cake\Error\BaseErrorHandler->wrapAndHandleException( )..\BaseErrorHandler.php:0
20.912518940792Cake\Error\BaseErrorHandler->handleException( )..\BaseErrorHandler.php:164
30.912518940992Cake\Error\ErrorHandler->_displayException( )..\BaseErrorHandler.php:180
40.921319257112Cake\Error\ExceptionRenderer->render( )..\ErrorHandler.php:144
50.922219262680Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:194
60.927619317168Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:336
70.927619317168Cake\Controller\Controller->render( )..\ExceptionRenderer.php:327
80.929519323584Cake\View\View->render( )..\Controller.php:617
90.930519325288Cake\View\View->_render( )..\View.php:591
100.931019326160Cake\View\View->_evaluate( )..\View.php:967
110.931419362512include( 'C:\wamp\www\visitkiplus.ru_new\cake2\src\Template\Error\error500.ctp' )..\View.php:1008
120.933519381544xdebug_print_function_stack ( )..\error500.ctp:33
Variables in local scope (#11)
$error =
object(RuntimeException)[62]
  protected 'message' => string 'Unable to emit response; headers already sent' (length=45)
  private 'string' (Exception) => string '' (length=0)
  protected 'code' => int 0
  protected 'file' => string 'C:\wamp\www\visitkiplus.ru_new\cake2\vendor\zendframework\zend-diactoros\src\Response\SapiStreamEmitter.php' (length=107)
  protected 'line' => int 32
  private 'trace' (Exception) => 
    array (size=2)
      0 => 
        array (size=6)
          'file' => string 'C:\wamp\www\visitkiplus.ru_new\cake2\vendor\cakephp\cakephp\src\Http\Server.php' (length=79)
          'line' => int 107
          'function' => string 'emit' (length=4)
          'class' => string 'Zend\Diactoros\Response\SapiStreamEmitter' (length=41)
          'type' => string '->' (length=2)
          'args' => 
            array (size=1)
              ...
      1 => 
        array (size=6)
          'file' => string 'C:\wamp\www\visitkiplus.ru_new\cake2\webroot\index.php' (length=54)
          'line' => int 37
          'function' => string 'emit' (length=4)
          'class' => string 'Cake\Http\Server' (length=16)
          'type' => string '->' (length=2)
          'args' => 
            array (size=1)
              ...
  private 'previous' (Exception) => null
  public 'xdebug_message' => string '<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> RuntimeException: Unable to emit response; headers already sent in C:\wamp\www\visitkiplus.ru_new\cake2\vendor\zendframework\zend-diactoros\src\Response\SapiStreamEmitter.php on line <i>32</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th a'... (length=12025)
$message =
string 'Unable to emit response; headers already sent' (length=45)

If you want to customize this error message, create src\Template\Error\error500.ctp

toggle vendor stack frames