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.669419041568Cake\Error\BaseErrorHandler->wrapAndHandleException( )..\BaseErrorHandler.php:0
21.669419041648Cake\Error\BaseErrorHandler->handleException( )..\BaseErrorHandler.php:164
31.669519041848Cake\Error\ErrorHandler->_displayException( )..\BaseErrorHandler.php:180
41.678719357904Cake\Error\ExceptionRenderer->render( )..\ErrorHandler.php:144
51.679719363472Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:194
61.684519417952Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:336
71.684519417952Cake\Controller\Controller->render( )..\ExceptionRenderer.php:327
81.686319424368Cake\View\View->render( )..\Controller.php:617
91.687919426072Cake\View\View->_render( )..\View.php:591
101.688419426944Cake\View\View->_evaluate( )..\View.php:967
111.688919463296include( 'C:\wamp\www\visitkiplus.ru_new\cake2\src\Template\Error\error500.ctp' )..\View.php:1008
121.691219482304xdebug_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