You are not logged in.
Pages: 1
Topic closed
Are you planning to release this plugin for GLPI version 9.2?
I tested the version of the trunk, a small error returned:
In the consultation of the "webservices" methods of the client:
Fatal error: Cannot use [] for reading in D:\wamp64\www\glpi921\plugins\webservices\inc\methodinventaire.class.php on line 745
Patch :
Index: methodinventaire.class.php
===================================================================
--- methodinventaire.class.php (revision 453)
+++ methodinventaire.class.php (working copy)
@@ -742,7 +742,7 @@
return $resp;
}
- $resp = array()[];
+ $resp = [];
Thank you in advance
Offline
Hi
The plugin is hosted here: https://forge.glpi-project.org/projects/webservices
You should request to be reporter or contributor for the plugin.
No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!
Offline
amma35: already corrected for me.
I wait final tests from a user to publish the plugin (i have no time to test all parts)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Hello Ylien, What about your labours on Webservices ? I am testing it on GLPI 9.2.3 and I receive this message :
Fatal error: Cannot use [] for reading in /var/www/html/glpi/plugins/webservices/inc/methodinventaire.class.php on line 745
Thank your for your attention ! With best regards, Mikhael.
Offline
PS : Furthemore, Webservices provides only these methods :
glpi.test Webservices PluginWebservicesMethodCommon::methodTest ok
glpi.status Webservices PluginWebservicesMethodCommon::methodStatus ok
glpi.listAllMethods Webservices PluginWebservicesMethodCommon::methodList ok
glpi.listEntities Webservices PluginWebservicesMethodCommon::methodListEntities ok
glpi.doLogin Webservices PluginWebservicesMethodSession::methodLogin ok
glpi.listKnowBaseItems Webservices PluginWebservicesMethodTools::methodListKnowBaseItems ok
glpi.getKnowBaseItem Webservices PluginWebservicesMethodTools::methodGetKnowBaseItem ok
Offline
PPS : I'm testing your 1.8.0 version.
Offline
Hello amma35, Your patch is working well :-) Thank you.
Offline
The import of CSV files works perfect with Webservices 1.8 and GLPI 9.2.4 Thank you :-)
/usr/bin/php /var/www/html/glpi/plugins/datainjection/testwebservice.php
--host=HOSTNAME
--url=glpi/plugins/webservices/xmlrpc.php
--username=glpi
--password=glpi
--uri=http://HOSTNAME/glpi/plugins/download/NOMDEFICHIER.csv
--models_id=3
--entities_id=0
PS : "models_id" is the id in the database of the model created in plugin DataInjection.
PPS : You need also to have every field in your CSV between double quotes : "field".
Enjoy
Offline
New version published this day (1.8.0)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Pages: 1
Topic closed