Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generic type "provider not defined" error #83

Open
mykolq opened this issue Mar 19, 2024 · 5 comments
Open

generic type "provider not defined" error #83

mykolq opened this issue Mar 19, 2024 · 5 comments

Comments

@mykolq
Copy link

mykolq commented Mar 19, 2024

i wanna use it with generic sso type, configure it, but have en error
Provider not defined.
I've fix Array to string conversion in /var/www/html/glpi/plugins/singlesignon/inc/toolbox.class.php on line 17
by $url var in toolbox.class.php to $url .= "/provider/".$id['id'];, but it still doesn't work , provider uri in developer mode of browser seems to be ok.
2024-03-19_14-55-04

@jjswordy
Copy link

on the current master version (line 42), from:

 $url .= "/provider/".$row['id'];

to:

 $url .= "/provider/".$row;

@mykolq
Copy link
Author

mykolq commented Mar 29, 2024

on the current master version (line 42), from:

 $url .= "/provider/".$row['id'];

to:

 $url .= "/provider/".$row;

this "fix" doesn't work

@arnault38
Copy link

it doesn't work for me either, but as I only have one provider I have replaced

$url .= "/provider/1";

and it works until waiting for better

@invisiblemarcel
Copy link
Contributor

it doesn't work for me either, but as I only have one provider I have replaced

$url .= "/provider/1";

and it works until waiting for better

That's strange for me both solutions are working.

$url .= "/provider/".$row;
and
$url .= "/provider/1";

How did you install glpi? I use the docker image diouxx/glpi and there it's working fine with $row but not with $row['id'].
PHP version: 8.3.4
GLPI version: 10.0.14

@edgardmessias
Copy link
Owner

I'm accepting pull requests, 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants