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 2019-02-26 12:05:16

florianmann
Member
Registered: 2011-06-22
Posts: 34

FusionInventory Packet Deployment Error

System: Debian 9, GLPI 9.4.0 and FusionInventory 9.4.0+1.0 , apache2, php7.0
Setup as in https://glpi-install.readthedocs.io/en/latest/ described.

Hi, i tried to test the deployment functions of fusioninventory, but iam not able to creat a packet.

If i try to add a packet in Deploy -> Package management -> Add and then add a packet action -> Upload file i get the Error:
"An error occured loading contents! Please check GLPI logs or contact your administrator. or try to reload"

Debug is:
"Fatal error: Uncaught Error: Call to undefined method Html::checkAllAsCheckbox() in /var/www/html/glpi/plugins/fusioninventory/inc/deployfile.class.php:237 Stack trace: #0 /var/www/html/glpi/plugins/fusioninventory/inc/deploypackage.class.php(594): PluginFusioninventoryDeployFile->displayList(Object(PluginFusioninventoryDeployPackage), Array, 746766048) #1 /var/www/html/glpi/plugins/fusioninventory/inc/deployinstall.class.php(99): PluginFusioninventoryDeployPackage->displayOrderTypeForm() #2 /var/www/html/glpi/inc/commonglpi.class.php(485): PluginFusioninventoryDeployinstall::displayTabContentForItem(Object(PluginFusioninventoryDeployPackage), '1', '') #3 /var/www/html/glpi/ajax/common.tabs.php(92): CommonGLPI::displayStandardTab(Object(PluginFusioninventoryDeployPackage), 'PluginFusioninv...', '', Array) #4 {main} thrown in /var/www/html/glpi/plugins/fusioninventory/inc/deployfile.class.php on line 237"

And

" 7z1900-x64.exe
af8f38679e16c996ffac152cac49369cf4b609abbd2cad07f49a114a82c6b5e564be29630c0fd2418110cf1a3d0ef3c9cc12f9164a69a575c91d9b98ce0df1a9
This file is not correctly registered in database.
You can fix it by uploading or selecting the good one."

I think the upload is not working correctly. May anyone assist me her?

Offline

#2 2019-03-07 13:20:59

ffauquenoy
Member
Registered: 2019-03-07
Posts: 2

Re: FusionInventory Packet Deployment Error

Hi,

I Have exactly the same problem.
Did you find any way to correct it ?

Thank you,
François

Offline

#3 2019-03-07 15:43:12

ffauquenoy
Member
Registered: 2019-03-07
Posts: 2

Re: FusionInventory Packet Deployment Error

I found partial answer on github : https://github . com /fusioninventory/fusioninventory-for-glpi/commit/8c11a4bf7dc9ee61382e9207b2658071db424936

You need to modify /var/www/glpi/plugins/fusioninventory/inc/deployfile.class.php on line 101
Replace :
$short_shas[] = "'".substr($sha512, 0, 6)."'";
by :
$short_shas[] = substr($sha512, 0, 6);

Offline

#4 2019-03-07 16:38:31

lboucher
Member
Registered: 2019-03-07
Posts: 1

Re: FusionInventory Packet Deployment Error

Hi,
yes, same here,
after modifying deployfile.class.php, my message in sql-errors.log disappeared
it was an error related to SELECT * FROM `glpi_plugin_fusioninventory_deployfiles` WHERE `shortsha512` IN (''8678e9'')

but the message "An error occured loading contents! Please check GLPI logs or contact your administrator. or try to reload" is still here. Even after recreating a new packet.

Did you manage to upload after that ?

I've also tried to change the upload directory to /tmp but no success...

Offline

#5 2019-03-10 22:02:05

florianmann
Member
Registered: 2011-06-22
Posts: 34

Re: FusionInventory Packet Deployment Error

Changed the file as suggested, ich  but still the same error here...

Offline

#6 2019-03-24 20:52:29

florianmann
Member
Registered: 2011-06-22
Posts: 34

Re: FusionInventory Packet Deployment Error

ffauquenoy wrote:

I found partial answer on github : https://github . com /fusioninventory/fusioninventory-for-glpi/commit/8c11a4bf7dc9ee61382e9207b2658071db424936

You need to modify /var/www/glpi/plugins/fusioninventory/inc/deployfile.class.php on line 101
Replace :
$short_shas[] = "'".substr($sha512, 0, 6)."'";
by :
$short_shas[] = substr($sha512, 0, 6);

Did solve the first problem.
To solve the second: The function Html::checkAllAsCheckbox() has been removed from glpi. to get rid of the error you could uncomment the lines which were mentioned in the php erros.
Theres already a bug report and fix for this in the fusioninventory plugin

Offline

Board footer

Powered by FluxBB