You are not logged in.
Pages: 1
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
Hi,
I Have exactly the same problem.
Did you find any way to correct it ?
Thank you,
François
Offline
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
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
Changed the file as suggested, ich but still the same error here...
Offline
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
Pages: 1