unlcms / UNL-CMS

Drupal 7 implementation at the University of Nebraska–Lincoln
http://unlcms.unl.edu/
GNU General Public License v2.0
4 stars 13 forks source link

[gh-806] Return from unl_og_membership_insert if not in OG user context #815

Closed ericras closed 10 years ago

ericras commented 10 years ago

Without this fix:

REFERRER http://arts.unl.edu/node/add/course MESSAGE PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null: INSERT INTO {users_roles} (uid, rid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 54 ) in unl_og_membership_insert() (line 21 of /var/www/htdocs/sites/all/modules/unl/unl.module).

ericras commented 10 years ago

This has already been added to production manually as an emergency fix