You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2015-05-26 19:26:07

stoatwblr
Member
Registered: 2014-04-13
Posts: 118

Plugin: Dashboard - PHP errors

Mostly undeclared variables, however the code does not cope well with "zero" devices in any given category (phones and print cartridges in this case) and generates "undefined offset" errors for pie charts it should not be attempting to draw in such cases.


...lpi/plugins/dashboard/front/assets/assets.php:5 include()
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Undefined variable: asset
  Backtrace :
  ...pi/plugins/dashboard/front/assets/assets.php:38
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant computers - assumed 'computers'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:236
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant monitors - assumed 'monitors'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:239
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant printers - assumed 'printers'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:242
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant networkequipments - assumed 'networkequipments'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:245
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant phones - assumed 'phones'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:248
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant peripherals - assumed 'peripherals'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:251
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant softwares - assumed 'softwares'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:254
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant cartridges - assumed 'cartridges'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:257
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Use of undefined constant consumables - assumed 'consumables'
  Backtrace :
  ...i/plugins/dashboard/front/assets/assets.php:259
2015-05-26 17:10:49 [11@msslyz.mssl.ucl.ac.uk]
  *** PHP Notice(8): Undefined offset: 0
  Backtrace :
  ...ugins/dashboard/front/assets/phone_manuf.php:82
  ...i/plugins/dashboard/front/assets/assets.php:412 include()
  *** PHP Notice(8): Undefined index: model_infos

Offline

Board footer

Powered by FluxBB