You are not logged in.
Pages: 1
Dear all,
after upgrade to GLPI version 0.85.4 I tried to upgrade an appliance plugin version 1.9.1 to version 2.0.0 but without success
During upgrade the following error appeared on screen:
Update: Appliances
PHP Notice: Undefined variable: DB in path-to-webserver\glpi\plugins\appliances\inc\appliance.class.php at line 972
Fatal error: Call to a member function request() on a non-object in path-to-webserver\glpi\plugins\appliances\inc\appliance.class.php on line 972
and in php-errors.log file:
*** PHP Notice(8): Undefined variable: DB
Backtrace :
plugins\appliances\inc\appliance.class.php:972
plugins\appliances\hook.php:243 PluginAppliancesAppliance::updateSchema()
inc\plugin.class.php:639 plugin_appliances_install()
front\plugin.form.php:45 Plugin->install()
I am not a PHP programmer, but I think that a variable definition (global $DB) is missing in function body
static function updateSchema(Migration $migration) {
on line 938
appliance.tar.gz was downloaded from nightly build 16.6.2015
Please confirm and/or fix.
Thank you.
Regards.
MiB
Debian 11, GLPI 10.0.6, OCS 2.3.1, MariaDB 10.5.18, Apache 2.4.52, PHP 7.4.33
Offline
I confirm. I tested the GLPI upgrade from 0.84.8 to 0.85.4 and plugin appliance from 1.9.0 to 2.0.0. And I get the same error (the plugin upgrade blocks on the notepad migration).
Add "global $DB;" at the beginning of the function, and it works fine.
I create an issue in the plugin forge.
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline
Same here. But afair there are some more reported malfunctions? Something with search?
Offline
Pages: 1