Using old data for tokens
Crell - May 4, 2008 - 02:36
| Project: | Auto username |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
So I'm still not entirely certain about this one. It appears that when auto_username runs, its token module implementation for the profile module ends up pulling data before changes to the profile are saved. That results in a problem, not just because the data is stale but if the previous data would result in an empty or invalid username, then it becomes impossible to save a user account. Oopsies. :-)
I may just need to increase the module weight so that it runs after profile.module, but I'm not sure. It needs a bit of testing before I confirm that. (Anyone who wants to test it for me and submit a patch is welcome to do so! :-) )

#1
Hey Larry, I'm puzzled by this as well. I attempted increasing the module's weight (placing it before and after token) and the error persists in both cases. I took a quick look at the code but nothing struck me immediately...