pluginsGLPI / ocsinventoryng

Plugin ocsinventoryng for GLPI
GNU General Public License v2.0
68 stars 52 forks source link

DataTables warning: table id=OcsTable - Invalid JSON response. #329

Closed sramzln closed 1 year ago

sramzln commented 2 years ago

Hi,

Plugin version: 2.0.1 GLPI version: 10.0.2

Tools > OCS Inventory NG > Inventory Import > Import or linka new computers.

Preview is disabled: When I choose a computer and click on Import or link new computers nothing happend.

If I enable preview :

Information DataTables warning: table id=OcsTable - Invalid JSON response. For more information about this errror, please see http://datatables.net/tn/1

Thanks Zoltan

rogeriooliveira123 commented 1 year ago

Same problem here! It's a bug?

TomBigJ commented 1 year ago

Hi,

We've got the same error. Information DataTables warning: table id=OcsTable - Invalid JSON response. For more information about this errror, please see http://datatables.net/tn/1

Our environnement is : GLPI 10.0.3 Plugin 2.0.2

I tried many things (resintallation from sractch with only one ocs server and 1 rule) but we've always have the problem.

Mask66 commented 1 year ago

Same here, GLPI 0.9.5 updated to 10.0.3, Plugin updated to 2.0.3.

php ocsng_fullsync.php --debug Thread #-1: import computers from server: 'OCS210' Thread #-1: 348 computer(s) .Uncaught Exception Error: Call to a member function getOcsComputer() on null in /usr/local/www/glpi/plugins/ocsinventoryng/hook.php at line 1364

Mask66 commented 1 year ago

From the php-errors.log, first is an import, second a "force full sync" on an existing computer.

[2022-11-11 21:49:12] glpiphplog.CRITICAL: *** Uncaught Exception Error: Call to a member function getOcsComputer() on null in /usr/local/www/glpi/plugins/ocsinventoryng/hook.php at line 1364 Backtrace : src/Plugin.php:1559 plugin_ocsinventoryng_ruleCollectionPrepareInputDataForProcess() src/RuleCollection.php:1772 Plugin::doOneHook() src/RuleCollection.php:1579 RuleCollection->prepareInputDataForProcessWithPlugins() ...ins/ocsinventoryng/inc/ocsprocess.class.php:526 RuleCollection->processAllRules() ...ins/ocsinventoryng/inc/ocsprocess.class.php:482 PluginOcsinventoryngOcsProcess::importComputer() plugins/ocsinventoryng/front/ocsng.import.php:107 PluginOcsinventoryngOcsProcess::processComputer()

[2022-11-11 21:58:12] glpiphplog.CRITICAL: *** Uncaught Exception Error: Call to a member function getOcsComputer() on null in /usr/local/www/glpi/plugins/ocsinventoryng/hook.php at line 1364 Backtrace : src/Plugin.php:1559 plugin_ocsinventoryng_ruleCollectionPrepareInputDataForProcess() src/RuleCollection.php:1772 Plugin::doOneHook() src/RuleCollection.php:1579 RuleCollection->prepareInputDataForProcessWithPlugins() ...ins/ocsinventoryng/inc/ocsprocess.class.php:928 RuleCollection->processAllRules() ...ns/ocsinventoryng/inc/ocsprocess.class.php:1798 PluginOcsinventoryngOcsProcess::synchronizeComputer() src/MassiveAction.php:1404 PluginOcsinventoryngOcsProcess::processMassiveActionsForOneItemtype() src/MassiveAction.php:1382 MassiveAction->processForSeveralItemtypes() front/massiveaction.php:59 MassiveAction->process()

tsmr commented 1 year ago

Please try with master version ? https://github.com/pluginsGLPI/ocsinventoryng/archive/refs/heads/master.zip

tsmr commented 1 year ago

fixed in 2.0.4

mcfx78 commented 1 year ago

Hi all,

i've install glpi 10.0.6 and OCSinventory 2.0.4 but i still have the same problem. Can you help me?

R0dS3rling commented 7 months ago

Hi,

Same problem with glpi 10.0.11 and ocsserver 2.12.1 Can you please help, we're completly blocked.

Thanks in advance.

rafaelrsilver commented 5 months ago

hi people,

same problem here, [GLPI 10.0.12], Plugin 2.0.4.

Did anyone manage to solve it?