Code update to fix current issues (the code doesn't work as is)

dragonfyre6 - January 23, 2008 - 06:25
Project:Profile Enforcer
Version:5.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:dragonfyre6
Status:needs work
Description

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.

AttachmentSize
profile_enforcer.module.tar_.gz2.95 KB

#1

dragonfyre6 - January 23, 2008 - 06:31

Crap. That included a line of my own debugging code, and will screw up your redirects. This is the one I meant to upload.

AttachmentSize
profile_enforcer.module.tar_.gz 2.95 KB

#2

xieliwei - January 26, 2008 - 14:13

Confirm 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.

#3

xieliwei - January 26, 2008 - 14:50

Did a quick patch. Wrapped a uid check before line 114 and after line 164. Also added suitable debug statements and comments. Please review.

AttachmentSize
profile_enforcer.module.tar_.gz 3.02 KB

#4

dragonfyre6 - February 5, 2008 - 05:26

Very nice. Much better.

I had no block appearing for unauthorized users, so it wasn't a problem for me. Thanks for catching that.

#5

christefano - August 5, 2008 - 06:29

#186396 is a duplicate of this issue.

#6

christefano - August 5, 2008 - 06:30

#243116 is a duplicate of this issue.

#7

christefano - August 5, 2008 - 06:38
Status:reviewed & tested by the community» needs work

We need a patch.

#8

1.kenthomas - February 5, 2009 - 07:44

Status? 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?

 
 

Drupal is a registered trademark of Dries Buytaert.