fixes a similar issue to: node/154568
This occurs on lines 238, 234, 230. I think it may be on one other one, but you can run a diff.
This also fixes the issue described at: node/155205 in post 4, and at: node/186396 for the whole issue.
Basically, the uid was hardcoded in the module to 7. If your 7th user was all filled out profile wise, you had no issues.
This also fixes some grammar issues in debug mode.
For anyone that wants this prior to it being included, just download the attached file, and overwrite your existing one in the profile_enforcer module directory.
Comments
Comment #1
dragonfyre6 commentedCrap. That included a line of my own debugging code, and will screw up your redirects. This is the one I meant to upload.
Comment #2
xieliwei commentedConfirm patch works, but causes infinite redirect loop when an unauthorised user visits the site.
I've turned off content access for unauthorised users, this probably causes all redirects by profile enforcer to redirect to the main login page, which profile enforcer tries to redirect to profile edit page again, causing the loop.
Confirmed problem goes away when profile enforcer is disabled.
Comment #3
xieliwei commentedDid a quick patch. Wrapped a uid check before line 114 and after line 164. Also added suitable debug statements and comments. Please review.
Comment #4
dragonfyre6 commentedVery nice. Much better.
I had no block appearing for unauthorized users, so it wasn't a problem for me. Thanks for catching that.
Comment #5
christefano commented#186396 is a duplicate of this issue.
Comment #6
christefano commented#243116 is a duplicate of this issue.
Comment #7
christefano commentedWe need a patch.
Comment #8
1kenthomas commentedStatus? What version is the above made from (there is mention elsewhere-- http://drupal.org/node/186396-- of a newer version in "bugtracker")? Is this module currently maintained?
Comment #9
1kenthomas commentedClosing. // outdated, evidently abandoned module.