You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, since version 9.5 of GLPI and the update of the plugin I can't update fields via API.
I see nginx log and i have this :
FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot declare class PluginFieldsComputerutilisateurad, because the name is already in use in /var/www/.....
Hi,
Same issue here.
GLPI 9.5.3
PluginField 1.12.0
PHP 8.0
Got it working by a editing file \plugins\fields\inc\autoload.php
In the autoload function, replaced line 57 return include($test);
with return include_once($test);
Don't know if this is the right way, but I got no more error and the fields are getting updated using API
Hi, since version 9.5 of GLPI and the update of the plugin I can't update fields via API.
I see nginx log and i have this :
FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot declare class PluginFieldsComputerutilisateurad, because the name is already in use in /var/www/.....
My python request :
requests.put('%s/apirest.php/PluginFieldsComputerpropritaire/' % urlglpi, headers = {'Session-Token':session_token,'App-Token':apptoken,'Content-Type': 'application/json'},data = json.dumps({"input": [{'id':fields_id,'items_id':id_pc, 'itemtype':'computer','plugin_fields_proprietairefielddropdowns_id':'2', 'maintenancefield':'1','dateheurefield':dateetheure } ] } ))
GLPI 9.5.1 - PluginFields 1.11.0 - debian 10.4 - php 7.3
Thanks for your help
The text was updated successfully, but these errors were encountered: