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

Use of undefined constant PLUGIN_FUSIONINVENTORY_VERSION #3012

Open Uzzi opened 4 years ago

Uzzi commented 4 years ago

Use of undefined constant PLUGIN_FUSIONINVENTORY_VERSION - assumed 'PLUGIN_FUSIONINVENTORY_VERSION' (this will throw an Error in a future version of PHP) in /var/www/glpi/plugins/fusioninventory/front/communication.php on line 72\n'

GLPI 9.5.1+Funsioninventory plugin 9.5.0+1.0 PHP 7.2

morevsky commented 3 years ago

Hello. I confirm this bug on glpi versions 9.5.4 and FI 3 after upgrade from FI 2.6

phamorais commented 3 years ago

Hi!

I confirm this in GLPI with 9.4.6+2.6

*** PHP Warning(2): Use of undefined constant PLUGIN_FUSIONINVENTORY_VERSION - assumed 'PLUGIN_FUSIONINVENTORY_VERSION' (this will throw an Error in a future version of PHP) Backtrace : inc/toolbox.class.php:700 plugins/fusioninventory/front/communication.php:73 Toolbox::userErrorHandlerDebug() plugins/fusioninventory/index.php:59 include_once(

image

morevsky commented 3 years ago

Hello! How to fix this problem ?

ddurieux commented 2 years ago

Not have the problem in 9.5+3.0, can you confirm the bug on this version ?

neoclust commented 1 year ago

I see this with 9.5.0+3.0

[2022-10-28 10:57:31] glpiphplog.WARNING: *** PHP Warning (2): include_once(): Failed opening 'PLUGIN_FUSIONINVENTORY_DIR/front/communication.php' for inclusion (include_path='.:/usr/share/php') in /usr/share/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php at line 50 Backtrace : ...ont/plugin_fusioninventory.communication.php:50 include_once()