1

Topic: Member ID or hash is invalid

There is a thread on this subject already, but from reading the thread there didn't seem to be a solution. I wanted to start a new thread in hopes of finding a solution or a way to prevent a member from getting the Member ID or hash is invalid error when they click the link in the email to activate their account.

I propose this happens more often than vldPersonal webmasters are aware of. As far as the webmaster is concerned, they notice that a member's account is inactive yet have no idea why. Like me, most probably assume the member just did not bother to activate his account.

I have it setup so new members receive an activation email and must click the link in the email to activate their account.

I had 144 inactive members. I mass emailed them asking if they wanted to be a member or should I delete their account. I got 72 replies and 28 members said they tried to activate their account but when they did they got the error "Member ID or hash is invalid"

With that many members getting this error, there has to be more to this problem than the previous thread stated.

So the questions are:

1. What causes this error?

2. Why do some members who try to activate get this error and some do not?

3. How to fix it?

When I asked a few members what they did to get this error, they said all they did was click the activation link in the email that was emailed to them.

Help please..........I have a feeling a lot of members accounts are not being activated because of this error.

Thanks

Last edited by db3204 (2007-12-13 09:52:21)

2

Re: Member ID or hash is invalid

1. What causes this error?

Two reasons:
1. Member ID is invalid
2. Security hash is invalid

2. Why do some members who try to activate get this error and some do not?

Some email clients break long URLs in the emails for whatever reason while others may incorrectly parse the link. Some users may incorrectly copy the URL as well. It's also possible that you enabled "pending" member group to login. Thus those members who haven't activated their account and logged in will not be able to activate it later.

3. How to fix it?

There's no need to fix it as it's not a bug. Best thing to do is to try to register yourself and see if everything works properly.

Developer

3

Re: Member ID or hash is invalid

2. Security hash is invalid smile

Vlad could you elaborate a little more what this is so I understand what a security hash is?

4

Re: Member ID or hash is invalid

Security hash a word consisting of 32 random characters. It's used to check if activation request is valid.

Developer

5

Re: Member ID or hash is invalid

Thanks vlad for your help on this and also on the sql query

Last edited by db3204 (2007-12-13 11:39:48)

6

Re: Member ID or hash is invalid

To my disapointment, I'm still getting the error ""Member ID or hash is invalid" when members click the activation link in the email.

I'm trying to figure out a way to best handle this.

Vlad, Mark or any programmer, is there a way to make this message more clear. When they click the link to activate their account, instead of getting the message "Member ID or hash is invalid" it would be nice if it said something more meaningful. For example "Sorry you got an invalid response when trying to activate your account. Please contact the admin at xxxxxxxx.com"

The members are confused by this message. The member thinks they did everything correctly -- signed up, clicked the link in the activation email, etc, and when they get the message that "Member ID or hash is invalid" they are frustrated and  confused.

Is there a way to change the error message to something more helpful to members?

thanks

Last edited by db3204 (2007-12-23 10:43:33)

7

Re: Member ID or hash is invalid

You can edit all messages that appear in the language files. This one is located in 'lang.lib.account_activate.php'

Support Staff

8

Re: Member ID or hash is invalid

Users are not typically programmers. They have no idea what a security hash or a hash is. I am only familar with cornbeef hash and hash brown potatoes.

What is needed is an explaination that the users can understand. Telling them something obscure like hash violation is not helpful. 

The standards for error messages state that the developer needs to provide not only what happened, but what to do next. And, neither of that information is available here.  information

Since most of us have no idea what it is or what to tell the users, it will continue to be a problem, bug or no bug. 

I see it all the time - but have no idea what to do about it.

Regards, Ellen Chen

9

Re: Member ID or hash is invalid

Why not edit a language file and replace that text with whatever you like?

Support Staff

10

Re: Member ID or hash is invalid

This word "hash" was a problem for me in my first script, I didn't know what this was, and using a dictionary was only confusing me. You can't find this word anywhere if you have no experinces into scripts and whatever... So I didn't know what to write, and couldn't replace that text with whatever I liked. In my next script - when I had discovered what it was, I translated this "hash" to "Security code", because I couldn't find a better word.
"Scripts-nerds-words" smile like this would be nice to be explained somewhere for us who ain't accustomed to specifik scripts-words...

- From the beginning I was intelligent, but since I learn something every day, I'm sure I'll end up wise as well -

11

Re: Member ID or hash is invalid

What mark said about editing your message that makes sense to the client is what I did. I basically let the client know that the problem was solvable and if they could not sign up, to contact me. Like any error, the biggest fear I have is that I will lose clients when it happens. In the client's mind, they did nothing wrong, but if your message conveys you are there to help  if they have any problems, you to stand a good chance of keeping them as a client.

12

Re: Member ID or hash is invalid

db3204 The sentense you wrote (""Sorry you got an invalid response when trying to activate your account. Please contact the admin at xxxxxxxx.com") is a very nice idea! smile When looking in my stat by my hosting, I see, that people get an error quite often, and ofcause some of them wont't retry or come back... I understand all the sentenses in languagesfiles now, but that particular sentense with "hash" I didn't know what part of the script it was connected with. This script is sold to people in the whole world, and SOME of us who haven't got English language from childhod, have some problems with the "technical language", and misunderstand some times.
I'll use your idea, and exchange all my error-sentenses :-)

- From the beginning I was intelligent, but since I learn something every day, I'm sure I'll end up wise as well -

13

Re: Member ID or hash is invalid

The solution here is create a short hash and a seperate field to put it in like in other softwares

this is like follow the member get a aktivations mail

dear username please click the follow link to aktivate your account

http://www.xyoururl.com/index.php?m=account_activate&id=4&hash=f2ba1bbeb6a95765c3fzth7293d88728

if the link doesnt work put in your aktivationskey manually on this page

http://www.xyoururl.com/index.php?m=account_activate

your key is f2ba1bbeb6a95765c3fzth7293d88728

now on this page need a field where the member can add his aktivationskey i have this problem also several times the users not be able to aktivate their account and leave for ever in times where you can found on every second page in internet a other dating portal the users to nothing to found a solution the only change to the next portal

Last edited by medusa (2008-01-28 05:59:54)

14

Re: Member ID or hash is invalid

This may be a question only vlad and mark can answer. If a customer gets the hash error, will pasting the link in the browsers address bar make a difference?

If it does, I can put such a statement in the validation email.

I wish there was a solution to this problem. Daily I get emails from members stating they received the hash error. What puzzles me is I never seen this error with any other script using activation by email be it forum, dating, blog, etc. In all cases, I always set up my scripts  so member activates his account by email.  vldPersonals was the first time I seen a hash error.

cheers

Last edited by db3204 (2008-01-28 09:29:02)

15

Re: Member ID or hash is invalid

We had our first non-eomployee member try to egister today and the following happended

"Member ID or hash is invalid."

It seems we cannot activate their account, and neither can the user? The below topics about what the problem is but I could still not work out how to activate the user?

If this is going to happen often we have a major problem?

Thanks,
jason

16

Re: Member ID or hash is invalid

"member ID or hash is invalid" - member get this error only if they leave open first window where he carried out the registration. when you log in to e-mail in new (second window) and cliked on a link, confirmation page opens in a the third window and member see error because is already activated in first window. Sometimes members do not see the first window is not closed. But how to eliminate this problem,  I have no idea. Can someone tell me please ?

17

Re: Member ID or hash is invalid

maybe using a url shortening service for links in the email might help a bit

18

Re: Member ID or hash is invalid

soni wrote:

"member ID or hash is invalid" - member get this error only if they leave open first window where he carried out the registration. when you log in to e-mail in new (second window) and cliked on a link, confirmation page opens in a the third window and member see error because is already activated in first window. Sometimes members do not see the first window is not closed. But how to eliminate this problem,  I have no idea. Can someone tell me please ?

May be to give members some message like "your account already activated, login using your username/email and password".

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd