Recursion when updating user profile with Realname and Organic Groups Field Access enabled and Common's default configuration for Realname.

Realname table not populated for new users. (Commons 7.x-3.3)

Workaround for issue described above:

Configure RealName to use [user:field-name-first] [user:field-name-last] for the user tokens. (Note the use of tokens with "-" in token name, not "_".)

Reproduce this bug with the following steps:

1) Fresh Drupal Commons install 7.x-3.4 with example content, accept all other defaults. (Breaks without sample content installed, as well)
2) Enable OG Field Access module
3) Register a new at user/register or
4) Set password for new user or click verification link in e-mail
5) Log in as newly created user
6) Edit profile at /user/x/edit-profile.
7) Save profile -- WSOD!
8) Profile changes not saved

xdebug call stack attached -- this is from a Commons 7.x-3.3 -- 7.x-3.4 was not triggering xdebug.

Comments

japerry’s picture

Confirmed that I could reproduce this issue. Looks like reconfiguring the tokens will be just fine. We should also investigate why there are two (one with _ and one with -) being provided. It doesn't do that in Core Drupal 7 w/Realname and OG enabled.

ezra-g’s picture

We should also investigate why there are two (one with _ and one with -) being provided.

See #1272560: Entity tokens duplicates field tokens created by token module.

gg4’s picture

Version: 7.x-3.4 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new810 bytes

Swaps tokens.

ezra-g’s picture

Priority: Normal » Major
Issue tags: +commons 7.x-3.6 radar

Adding to our 3.6 radar and boosting to "major."

japerry’s picture

Assigned: Unassigned » japerry
japerry’s picture

Yup fix confirmed. added an update to the install for previous and tested it on a non-patched commons.

Commit here:

http://drupalcode.org/project/commons.git/commit/f791015

japerry’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.