Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just started a fresh D7 installation to test the new 7.x-rc1 for this module. I installed it and the xrds_simple requirement and then attempted to login via slashdot.org/login.pl and stackexchange.com. Both generated some notice errors and a PDOException. In order from the watchdog report:
Notice: Trying to get property of non-object in openid_provider_xrds() (line 319 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.module).
Notice: Undefined index: openid.assoc_handle in openid_provider_authentication_response() (line 181 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
Notice: Undefined index: openid.session_type in _openid_provider_association_create() (line 52 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'session_type' cannot be null: INSERT INTO {openid_provider_association} (assoc_handle, assoc_type, session_type, mac_key, created, expires_in) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => 2012-01-30T16:33:31ZKAZK [:db_insert_placeholder_1] => HMAC-SHA256 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => b4Z/nss5B3VpySIQTkMN2C5JzSjKBRRyl5LjSrQsqBI= [:db_insert_placeholder_4] => 1327941211 [:db_insert_placeholder_5] => 3600 ) in _openid_provider_association_create() (line 105 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
Comments
Comment #1
anarcat CreditAttribution: anarcat commentedI admit I am not testing D7 very wel, thanks for the heads up. This is probably something simple.
By the way, i think you leaked a secret key there, be careful about your pastes!
Comment #2
jwineinger CreditAttribution: jwineinger commentedI'm not worried. This is a demo site just to test this stuff.
Comment #3
anarcat CreditAttribution: anarcat commentedCould you try commit 9a7efea? I think this is just handling the corner case of private associations.
This works on D6, but the error messages should go away anyways, so this needs to be backported if it works.
Comment #4
jwineinger CreditAttribution: jwineinger commentedOk that fixed the PDO error. I'm still seeing the following notices though:
Notice: Trying to get property of non-object in _openid_provider_signature() (line 418 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
Notice: Trying to get property of non-object in _openid_provider_signature() (line 419 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
Notice: Undefined index: openid.assoc_handle in openid_provider_authentication_response() (line 187 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
Comment #5
anarcat CreditAttribution: anarcat commentedAlright! I have pushed more changes that should fix those warnings and improve some corner cases. Can you try the git version again?
Comment #6
jwineinger CreditAttribution: jwineinger commentedStill getting the following:
Notice: Undefined index: openid.assoc_handle in openid_provider_authentication_response() (line 195 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
Notice: Undefined index: error_code in openid_provider_authentication_response() (line 199 of /var/www/drupal/sites/all/modules/openid_provider/openid_provider.inc).
What other debugging info do you need? I have debugging turned on but the watchdog messages don't give you much more than this.
Comment #7
anarcat CreditAttribution: anarcat commentedThose errors should be harmless, but I have fixed them in git.
Comment #8.0
(not verified) CreditAttribution: commentedreformat
Comment #9
DiDebruI got still the following notices
Notice: Trying to get property of non-object in _openid_provider_signature() (Zeile 561 von/sites/all/modules/contrib/openid_provider/openid_provider.inc).
Notice: Trying to get property of non-object in _openid_provider_signature() (Zeile 562 von /sites/all/modules/contrib/openid_provider/openid_provider.inc).
Extension : openid_provider
Project : openid_provider
Type : module
Title : Openid Provider
Description : OpenID Provider (or server) support allows you to
login to other OpenID enabled sites using your local
account.
Version : 7.x-1.0+4-dev
Date : 2013-10-01
Package : OpenID
Core : 7.x
PHP : 5.2
Status : enabled
Path : sites/all/modules/contrib/openid_provider
Schema : module has no schema
version
Files : openid_provider.inc, openid_provider.install,
openid_provider.module, openid_provider.pages.inc
Requires : xrds_simple
Required by : openid_provider_ax, openid_sso_provider,
f_sso_provider, openid_sso_provider_registration,
openid_sso_provider_required_fields,
openid_sso_provider_selection
Permissions : manage own openid sites, administer openid provider
Configure : Keine