aad-sso-wordpress icon indicating copy to clipboard operation
aad-sso-wordpress copied to clipboard

HTTP 500 error after login on AAD

Open Jamesits opened this issue 9 years ago • 7 comments

Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/blog.swineson.me/wp-content/plugins/aad-sso-wordpress/aad-sso-wordpress.php on line 356

Jamesits avatar Dec 06 '16 11:12 Jamesits

Can you provide some more details on how you plugin was configured and at which point of the sign-in you received this error?

psignoret avatar Dec 06 '16 12:12 psignoret

Actually, forget it, I see where the issue is. This can happen if creating the new user fails, and we try to log the result (since we expected it to be a user id). Need to add better error handling here.

psignoret avatar Dec 06 '16 12:12 psignoret

is this solved? i am getting the same issue.

jdadon32 avatar May 16 '17 10:05 jdadon32

Are you seeing the exact same error message?

psignoret avatar May 16 '17 10:05 psignoret

I'm getting the exact same error. The new user exists in the WordPress directory so it seemed to work. I tried to login again and got the same error. Any ideas?

npnigro avatar Jul 12 '17 14:07 npnigro

Can you confirm that you're using the latest version from GitHub? Can you include the error message you're seeing?

psignoret avatar Jul 12 '17 15:07 psignoret

I am using the latest version -- I installed only a couple weeks ago. I was getting the exact same error as above. I removed the user from WordPress and it worked ok. Not sure what went wrong.

npnigro avatar Jul 12 '17 15:07 npnigro