Required pageroute not being required
| Project: | Membership types and registration modification |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I have a very strange problem. My installation has been up and running for about 6 months and working fine (you gave me some support in the very beginning).
My site has users create a new account, and does not require email verification. After they choose their password, they are immediately sent through the required pageroute; without doing so they are not allowed to browse the site.
This was all working fine until today. All of a sudden the required pageroute is not shown; instead they user is taken to the home page after registration where they can browse the site freely.
We changed absolutely NOTHING leading up to this.
If the user logs out, then logs in using his new login/password, it requires them to go through the pageroute. But we are trying to capture them the FIRST time as soon as they create their account.
In trying to troubleshoot, I blasted away all the nf_ variables, installed the latest dev version, recreated my registration types, and blasted away the cache, but still same thing.
I recall this happening in the very beginning and after spending the afternoon pulling out my hair, it just started working all of a sudden. No such luck this time.
Any advice would be greatly appreciated.
Thanks!

#1
Sorry, it was my fault after all. The module was doing exactly what it was supposed to. Sort of...
In a totally unrelated patch to another part of the application, I had to assign uid 0 to a node so that queries would join properly even if there was no uid associated with the row. This, in turn, was messing with nf_registration_mod because at the instant that it runs the 'insert' part of hook_user, there is no uid, so the query is going in as null, but the database actually returns one row (the one I set to uid 0).
I also realized once I delved into it that the ability to force users through the pageroute immediately upon registration (as opposed to on their first login) isn't supported by your module anyway, and that it was through some rewriting by me that made it work that way in the first place. I did so by hooking into the 'insert': case inside hook_user.
In fact I think I emailed you about this a long time ago. Perhaps now that you've got a number of the bugs worked out, you'd consider adding in this functionality, for sites like mine that don't required email verification. For now I've had to revert back to my old version since it gets the job done and I won't have to re-patch your newer version with my mods.
Thanks anyway. Changing this to a feature request.
#2
Feel free to post your code. I'm always open to new code.