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.838218940016Cake\Error\BaseErrorHandler->wrapAndHandleException( )..\BaseErrorHandler.php:0
20.838318940096Cake\Error\BaseErrorHandler->handleException( )..\BaseErrorHandler.php:164
30.838318940296Cake\Error\ErrorHandler->_displayException( )..\BaseErrorHandler.php:180
40.844019256512Cake\Error\ExceptionRenderer->render( )..\ErrorHandler.php:144
50.844719262080Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:194
60.847719316560Cake\Error\ExceptionRenderer->_outputMessage( )..\ExceptionRenderer.php:336
70.847719316560Cake\Controller\Controller->render( )..\ExceptionRenderer.php:327
80.848919322976Cake\View\View->render( )..\Controller.php:617
90.849619324680Cake\View\View->_render( )..\View.php:591
100.849919325552Cake\View\View->_evaluate( )..\View.php:967
110.850319361896include( 'C:\wamp\www\visitkiplus.ru_new\cake2\src\Template\Error\error500.ctp' )..\View.php:1008
120.851719380912xdebug_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