Author |
Topic |
|
Jer996
Starting Member
7 Posts |
Posted - 25 February 2009 : 09:17:31
|
I just setup a forum and while some users are able to register just fine - others are getting an error message. I have email activation enabled, and they get an email just fine. When they click on the activation link they get a blank page with "The system cannot find the file specified." error message. Also if I go into Members Pending.. section of the Admin area, I can see their pending registration and when I click on Activate Account I get the same error.
I can't see a pattern to when/why it happens but for a new forum I'm getting complaints about it not working. Any help would be appreciated.
Thanks, J< |
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Jer996
Starting Member
7 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Jer996
Starting Member
7 Posts |
Posted - 25 February 2009 : 10:02:15
|
It's a shared host, so my access is not full.
If IIS can't find the correct error page to return, is the issue then why are we being directed to an error page during the activation?
I do recall a setting with the host that allowed "custom 404 error pages, basically showing their ads on pages that couldn't be displayed on your domain, but I checked and that feature was/is not enabled.
From the host - "Typically, an error page will be displayed (for example, 404 Error) if one of your web pages does not display correctly. When using this service, a page from our webserver will be displayed instead. Unless, of course, you have set up your own error message."< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Jer996
Starting Member
7 Posts |
Posted - 25 February 2009 : 20:51:10
|
Couple of questions
You said you tried the same URL with your forum and had the same result - isn't the ACTKEY value specific to the individual user registration in my database? If I edit the querystring and replace the ACTKEY with 123456789 I have the same result.
If it was any issue with the length of the URL string, which in this case does not seem to be long at all, wouldn't all user registrations fail?
< |
|
|
Jer996
Starting Member
7 Posts |
Posted - 25 February 2009 : 21:03:44
|
Let me clarify my statement about editing the ACTKEY value in the URL - I can edit the ACTKEY value and remove letters from the end of it, all the way down to ACTKEY=34vh7b0x
That key length and longer return the error. Remove the x from the end and it will take you to an Activation Key not Found! "normal" error screen.< |
|
|
Jer996
Starting Member
7 Posts |
Posted - 25 February 2009 : 21:12:12
|
I just saw your request for the text of Register.asp
That file is over 900 lines of code so I didn't want to post it here. I uploaded it - http://www.mobcodes.com/forum/register.txt< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 26 February 2009 : 01:40:41
|
didn't someone write a mod to issue smaller activation keys previously ?< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 26 February 2009 : 04:25:44
|
This is it. The only problem is, with a shorter key, the chances of a duplicate key are increased - I thought I'd written an addition for that mod that would make sure that didn't happen but I can't seem to find it.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 26 February 2009 : 05:32:12
|
You could do something like this to generate the key (using small/cap letters and numbers 1-9 ... since 0 is too close to O ... resulting in one chance out of 976 of a duplicate key. For most forums, that should be sufficient. dim act, stractive
stractive=""
for x = 1 to 16
Randomize
act=int(Rnd * 60) + 1
if act > 26 and act < 36 then
chract=chr(act+22)
elseif act > 35 then
chract=chr(act+30)
else
chract=chr(act+96)
end if
stractive=stractive + chract
next
Response.Write stractive < |
|
|
Jer996
Starting Member
7 Posts |
Posted - 27 February 2009 : 08:54:43
|
So is my solution what Carefree is suggesting changing? If so, can you tell me where I should replace existing code with what is listed there?
Thanks< |
|
|
|
Topic |
|