Look at lines 1161 - 1164 :

elseif (isset($allowed_roles[2])) {
      // The "authenticated user" role is allowed to submit and the user is currently logged-out.
      $message = t('You must <a href="!login">login</a> or <a href="!register">register</a> to view this form.', array('!login' => 'user/login', '!register' => 'user/register'));
    }

These links go no where. I would guess you need to get the site $base_path and use that here. Also, seems hard coded for clean URLs ? that can't be good. Unless these are configurable somewhere in the admin interface? I don't see that.

An easy bug, easy fix.

Comments

goose2000’s picture

Ok, you just need to wrap the links with the url() thingy:

    elseif (isset($allowed_roles[2])) {
      // The "authenticated user" role is allowed to submit and the user is currently logged-out.
      $message = t('<h2>You are not logged in. test</h2> You must <a href="!login">login</a> or <a href="!register">register</a> to view this form.', array('!login' => url('user/login'), '!register' => url('user/register')));
    }
quicksketch’s picture

Title: You must login links broken » User login/register links broken
Status: Active » Fixed

Thanks, quite right. I wrapped them in url() and committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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