php - Silverstripe - google connect -
i trying make google connect/openid work in silverstripe getting error , don't understand error @ all.
[notice] trying property of non-object /googlecallback/googleconnect $ch = curl_init($url); curl_setopt_array($ch, array( curlopt_returntransfer => true, curlopt_httpheader => array( 'accept: application/xrds+xml') )); $xml = curl_exec($ch); $xml = simplexml_load_string($xml); $discovery = $xml->xrd->service->uri->__tostring(); curl_close($ch); $params = array( 'openid.mode' => 'checkid_setup', 'openid.ns' => 'http://specs.openid.net/auth/2.0',
ps: using module https://github.com/mediadevils/silverstripe-google-authentication
it tell line triggered error guess in
$discovery = $xml->xrd->service->uri->__tostring();
it quite not getting expected xml response (it can many reasons, module might not root cause of issue). example dump content of $xml variable in order know more back. like
debug::dump($xml); debug::dump(curl_error($ch));
after curl_exec($ch);
hope helps
Comments
Post a Comment