Hi,

I was using referral beta4 in my production site. One of my friend while trying to register at my site, he could not submit his registration form, he can fill out that though. I spend almost 2 days to find out the issue. After I disabled the 'referral' module it was working just fine! By the way, it was taking me to the maintenence page but with different words "website has encountered an unexpected error".

** I used this module before, but experiencing this problem for the first time. I have checked all the permissions & configurations of these modules (user core, account settings, roles, fancy loggin, login trobogaan, invite, rules)

If you need more info I can help you, I have to solve the problem for the moment though. so I can not keep my site in that form. my site is http://www.megagss.com

Comments

IWasBornToWin’s picture

I had the same issue - see http://drupal.org/node/1673220

Here's what happens (i think). Will know for sure tomorrow.

When setting how long a cookie lasts for referrals I think the module must load a cookie and then after that time period wont allow anymore registrations from that site if that cookie is still on the computer.

You can immediately solve this by clearing cookies, and/or leaving the cookie days in referral settings to blank (although your referral won't register.

Somehow, referral module is blocking any type of registration if it's after the cookie expiration time. The user can't even register because (i think) the old cookie is trying to be inserted into some record and referral module is saying "no way, too old"

I currently have my settings at one day (it was 14) so i will know tomorrow if this is it. Also, for testing, I've registered then deleted lots of user under the same referral code from one computer. I wouldn't think there would be a limit (even from the same computer) but who knows.

IWasBornToWin’s picture

Another weird thing - when a user visits the site for the first time it seems this is when a timestamp is created that will be used no matter when the user registers. I've registered and deleted several dummy users from the same computer. The cookie is still being used but if I register that user right now, the user referral report will show that referral was obtained earlier this morning (the first time the referral link was visited)

IWasBornToWin’s picture

Found the problem - I'm pretty sure I found the issue. If a user goes to the site with a referral code which is no longer valid - referring user deleted or whatever, then the error is thrown. Because the code cant be found when attempting to create a join. User referral module should have a condition that if the referring code isn't in the records then no referral record is created. But it doesn't. And no one maintains this module, so use at your own risk and hopefully you can tell your site users to clear their cookies so they can then register.

IWasBornToWin’s picture

Priority: Major » Critical