1

I have added pages, webform, and views to my site to customize the User profile experience. I can access mysite.org/user and it shows my user profile page as customized. I have a link on that page to Edit the user profile which is formatted as mysite.org/user/1/edit this works fine. I also have realname module installed so the Edit button on the User profile tabs has the url mysite.org/user/my-real-name/edit This link does not work. It gives an access denied when used even from the User 1 account. I have researched this over and over and over. I can't find the cause or the fix. Any ideas?

I've checked permissions, I've gone through the panel page, the view. I've disabled things and tried it and still issues. I'm at a total loss on what to do.

4
  • are you sure a url alias is being assigned using the real-name parameter?
    – Geoff
    Commented Apr 20, 2015 at 23:16
  • Yes, Just checked it.
    – frTommy
    Commented Apr 20, 2015 at 23:18
  • assuming you have customised the edit via panels, have you tried disabling panels entirely for that page?
    – Geoff
    Commented Apr 20, 2015 at 23:23
  • I didn't customize the edit via panels. The only thing I did to the Edit was created a webform which I then used Views to create a page which rendered the webform at user/%/edit/My_Details
    – frTommy
    Commented Apr 20, 2015 at 23:27

2 Answers 2

0

I don't think Real Name does what you think it does. At least not by default. The module is primarily for using parts of the user account other than the username when the user account is displayed (such as the by-line on an article).

You can set the edit link to send people to mysite.org/user/my-real-name/edit but unless you've done something to make that URL exist, which I'm not sure you can do with this module, it won't do anything.

6
  • Then why does mysite.org/user/my-real-name work? I also have Pathauto as well as subpathauto so this should take care of creating those links
    – frTommy
    Commented Apr 21, 2015 at 0:39
  • it follows the same idea that you can go to a url alias of: /this-is-the-node-title, but by default, the edit page would be: node/12/edit - unless there is something specifically overriding that default behaviour
    – Geoff
    Commented Apr 21, 2015 at 1:01
  • Geoff is right, just because user/% has an alias, it doesn't mean that user/%/edit will have a similar alias.
    – Darvanen
    Commented Apr 21, 2015 at 1:17
  • Although it appears subPathAuto should handle that, I would look in the settings for that module.
    – Darvanen
    Commented Apr 21, 2015 at 1:56
  • The subpathauto module is set to 3 depth and it works on other content with the /edit argument. It's just not working on the user node.
    – frTommy
    Commented Apr 21, 2015 at 17:47
0

This has nothing to do with the Real Names module. There are 2 Types of links in Drupal:

  • system links like /user/1 or /node/240
  • and alias links like /user/johndoe or /content/about (they point to system links and are generated by modules like Pathauto)

While most of the site is accessible via alias links generated by pathauto, certain admin links require arguments on the system link: /content/about/edit does not work – /node/240/edit is the correct link, because there is no alias for the edit link.

Same with the user page: You can't mix system links (accepting special arguments like /edit) with path aliases. The only way to do that would be to generate a separate alias for all argument links (e.g. an alias for /node/240/edit, /node/240/delete) – some sites actuallay do that, via Rules for example.

2
  • That's why I have the module subpathauto installed. It does this all links.
    – frTommy
    Commented Apr 21, 2015 at 17:45
  • Ah, okay, that's not very common – you should mention this in your original post. Commented Apr 22, 2015 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.