When the site is set to only allow the admin to create user accounts, as in no self-registration option, the webform displays "You must login or register to view this form." When the webform permission is set to "authenticated users" only.

Comments

ianchan’s picture

same problem...

quicksketch’s picture

Thanks, definitely sounds like a valid problem.

Alan.Guggenheim’s picture

I have a similar issue.
On a webform that is setup to require login, when you are not logged-in, you get the message:
You must login or register to view this form.
The login link works, but the register link does not. The link is:
http://www./user/register?destination=node/146?reset=&gid=12
and it does not go to the register page, it returns to the same page.

quicksketch’s picture

Title: You must login or register to view this form. » You must login or register to view this form. Register does not work
Priority: Minor » Normal

Could you be more descriptive about what the link currently is and how it is supposed to look? Is the domain name missing? It looks like Organic Groups is modifying the link also somehow, adding in "reset" and "gid".

Alan.Guggenheim’s picture

Sure. Thanks for the prompt response. The domain name is fine. Yes, I have OG but also CiviCRM and using civiCRM profiles.
The link for login and register, show (domain repalced by :
http://www./user/login?destination=node%2F146
for login and
http://www./user/register?destination=node%2F146
for register

When I actually click on the links, I go to:
http://www./user/login?destination=node%2F146
for login, which is fine, and
http://www./content/voters-guide-survey-2010-elections?reset=1&gid=12
for register, instead of going to registration page wich is normally at
http://www./user/register

quicksketch’s picture

I'm not sure I can help with that issue. Sounds like another module is modifying the login path.

Alan.Guggenheim’s picture

I am afraid you might be correct. I will dig. Thanks

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new3 KB
new1.36 KB
new1.3 KB

I've committed the attached round of patches to Webform to hide the "register" link unless the user can actually use that page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dougthelegoman’s picture

Component: Code » User interface
Category: bug » task
Priority: Normal » Minor
Status: Closed (fixed) » Active

I am having the same issue. The register link simply reloads the page. When I log on to edit the page, the link disappears because I am already registered. Is there a way to change the destination of this link?
Link: http://www.bigbluesme.com/user/register?destination=node%2F23%23comment-...
desired destination: http://www.bigbluesme.com/user/register/member

Thanks!
(Sorry if I bungled up the issue settings. I'm new to this.)

quicksketch’s picture

@dougthelegoman: Per the submission guidelines (which you only see when creating a new issue, so you probably missed them), leaving closed issues that are more than a few months old is usually the right thing to do and instead open a new issue. From what I can tell from your description, Webform sounds like it's working properly. The user registration form lives at user/register, not user/register/member. Sounds like you've got some custom code on the site that is doing a drupal_goto() from "user/register" to "user/register/member". However since Webform includes a "destination" property in the URL, that takes precedence inside drupal_goto() and the page ends up just reloading. Wherever you're doing the redirect from "user/register" to "user/register/member", you'll need to empty out $_GET['destination'] so that it doesn't interfere with drupal_goto().

dougthelegoman’s picture

Thanks!
I'll give that a try.
(No, I hadn't seen the submission guidelines. I'd just seen comments here and there saying look for someone else with the same issue. Thanks for the pointer! I'll be sure to read through them.)

dougthelegoman’s picture

Status: Active » Fixed
quicksketch’s picture

Thanks for updating the issue category. Sounds like you got it fixed? Did you use the approach I outlined or was it something else entirely?

dougthelegoman’s picture

Yep, it's fixed. I sent your comment to my php guy and he found the custom code. He ended up changing the code for the register link though. I imagine that was easier from a coding perspective.
Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.