The link Create your own mysite links to something like: www.example.com/mysite//edit (shows when hovering the link) missing the userid between "mysite//edit".
This error is due to the variable $owner->uid, used in the following function.

function theme_mysite_block_help() {
  global $user;
  if (user_access('edit mysite')) {
    $output = l(t('Create your own mysite'), "mysite/". $owner->uid. '/edit');
    return $output;
  }  
}  

I tried the $user->uid instead of $owner->uid and the problem is solved. So if anybody else is facing the same problem just change the above function to the following one...

function theme_mysite_block_help() {
  global $user;
  if (user_access('edit mysite')) {
    $output = l(t('Create your own mysite'), "mysite/". $user->uid . '/edit');
    return $output;
  }  
}  

Comments

agentrickard’s picture

Status: Active » Fixed

Yup. That's a bug alright.

Fixed in 4.7.x.3-dev, 5.x.1-dev. I fixed this in HEAD back on 03-APR-2007.

Thanks for the report!

agentrickard’s picture

Turns out I've accidentally been comitting 4.7 changes to 4.7.x.1-dev instead of 4.7.x.3-dev. This error has been corrected.

New release 4.7.x.3.10 fixes this issue.

agentrickard’s picture

Status: Fixed » Closed (fixed)