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
11.432218943424Cake\Error\BaseErrorHandler->wrapAndHandleException( )..\BaseErrorHandler.php:0
21.432218943504Cake\Error\BaseErrorHandler->handleException( )..\BaseErrorHandler.php:164
31.432218943704Cake\Error\ErrorHandler->_displayException( )..\BaseErrorHandler.php:180
41.438219259744Cake\Error\ExceptionRenderer->render( )..\ErrorHandler.php:144
51.438919265440Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:194
61.442019319912Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:336
71.442119319912Cake\Controller\Controller->render( )..\ExceptionRenderer.php:327
81.443219326328Cake\View\View->render( )..\Controller.php:617
91.443919328032Cake\View\View->_render( )..\View.php:591
101.444219328904Cake\View\View->_evaluate( )..\View.php:967
111.444619365280include( 'C:\wamp\www\visitkiplus.ru_new\cake2\src\Template\Error\error500.ctp' )..\View.php:1008
121.445919384288xdebug_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