You are not logged in.
Pages: 1
Hello!
I have a problem with genericobject plugin.
When I trying to get some fields from generic object by REST API with token (/glpi/apirest.php/listSearchOptions/PluginGenericobjectCar), I get "500" code. Embedded object works fine.
I think it associated with access rights settings but I can't find that settings in GLPI.
I checked the /usr/share/glpi/plugins/genericobject/inc/field.class.php but found nothing what could help.
What I have to do for get generic object fieds by REST API?
Thanks.
Last edited by DROP TABLE (2020-08-06 10:58:03)
Offline
Any ideas?
Offline
Still nothing? No one uses REST with generic objects?
Offline
I will have to deal with it in the incomming days.
I keep on mind you have the problem and I will come back to you if I found the graal :-)
Offline
Finally, I have a solution !
But you need to change a file GLPI file to be able to use it.
In /glpi/marketplace/genericobject/inc/autoload.php or /glpi/plugins/genericobject/inc/autoload.php (depending of what you use), line 57,
change
return include($test);
into
return include_once($test);
Error 500 is gone.
Offline
Pages: 1