fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
361 stars 148 forks source link

Header errors on timeslots #1695

Open tsmr opened 9 years ago

tsmr commented 9 years ago

Version 0.85+1.3 Trace :

2015-10-08 11:23:44 [6@VS-GLPI01]
  *** PHP Warning(2): Cannot modify header information - headers already sent by (output started at /usr/share/glpi/inc/dropdown.class.php:1835)
  Backtrace :
  :                                                  
  inc/html.class.php:2256                            header()
  inc/html.class.php:993                             Html::header_nocache()
  inc/html.class.php:1136                            Html::includeHeader()
  inc/html.class.php:737                             Html::header()
  inc/html.class.php:540                             Html::displayErrorAndDie()
  inc/commondbtm.class.php:2439                      Html::displayRightError()
  inc/commondbtm.class.php:2123                      CommonDBTM->check()
  ...fusioninventory/inc/timeslotentry.class.php:166 CommonDBTM->initForm()
  ...fusioninventory/inc/timeslotentry.class.php:146 PluginFusioninventoryTimeslotEntry->formDeleteEntry()
  plugins/fusioninventory/inc/timeslot.class.php:238 PluginFusioninventoryTimeslotEntry->formEntry()
  inc/commonglpi.class.php:450                       PluginFusioninventoryTimeslot->showForm()
  ajax/common.tabs.php:87                            CommonGLPI::displayStandardTab()
2015-10-08 11:23:44 [6@VS-GLPI01]
  *** PHP Warning(2): Cannot modify header information - headers already sent by (output started at /usr/share/glpi/inc/dropdown.class.php:1835)
tsmr commented 9 years ago

//$this->initForm(key($dbentries), $options); into function formDeleteEntry dans timeslotentry.class.php

correct the problem

ddurieux commented 8 years ago

Not have this error :/ Have you the scenario to reproduce this error?

pVesian commented 7 years ago

I have this too on 9.1-1.1. To reproduce, create a timeslot and use as hours Monday 00:00 and Friday 24:00.

Trace:

$ tail -n 16 files/_log/php-errors.log 
2017-01-17 09:43:53 [2@model-ubuntu]
  *** PHP Warning(2): Cannot modify header information - headers already sent by (output started at /var/www/html/glpi/inc/dropdown.class.php:1965)
  Backtrace :
  :                                                  
  inc/html.class.php:2478                            header()
  inc/html.class.php:1104                            Html::header_nocache()
  inc/html.class.php:1341                            Html::includeHeader()
  inc/html.class.php:843                             Html::header()
  inc/html.class.php:537                             Html::displayErrorAndDie()
  inc/commondbtm.class.php:2558                      Html::displayRightError()
  inc/commondbtm.class.php:2231                      CommonDBTM->check()
  ...fusioninventory/inc/timeslotentry.class.php:197 CommonDBTM->initForm()
  ...fusioninventory/inc/timeslotentry.class.php:173 PluginFusioninventoryTimeslotEntry->formDeleteEntry()
  plugins/fusioninventory/inc/timeslot.class.php:281 PluginFusioninventoryTimeslotEntry->formEntry()
  inc/commonglpi.class.php:467                       PluginFusioninventoryTimeslot->showForm()
  ajax/common.tabs.php:97                            CommonGLPI::displayStandardTab()

screenshot from 2017-01-17 10 45 20 .