Can not activate account after sign up.

The activation does not work after a user registers for a new account and then clicks on the activation link. Once clicked on that link you get an error "There was an error activating your account, please try again." Entering the activation key manually does not work either.