WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Missing / in activation link email. (5 posts)

  1. Radices
    Member
    Posted 1 year ago #

    I've just set-up a MU with subdomains and in the activation email the link is missing a forward slash. I've hacked the ms-functions.php file to include a slash after {$path}

    Line 728 $activate_url = "http://{$domain}{$path}/wp-activate.php?key=$key"; // @todo use *_url() API

    Surely this is wrong (hacking core files) and can't be a bug as I cannot find any mentions online.

    Cheers,
    GT
    http://www.durhamhouses.info

  2. It shouldn't be needed at all. Just like there isn't one between domain and path, your path should be putting that in.

    What's in your Path? Go to WP Dashboard -> Network -> Sites, click on edit site for a subsite.

  3. Radices
    Member
    Posted 1 year ago #

    It shows a / in the path field on the dashboard.

  4. Radices
    Member
    Posted 1 year ago #

    I was running 3.5 RC and it was indeed a bug in the ms-functions.php file.
    Line 545 $base = $current_site->path; was missing. Just installed the nightly build and all is well again. Thanks for the help.

  5. Right, so something is stripping it out. The / in Path is the $path variable, you see.

    What plugins are you using, and what theme is on your main site?

Topic Closed

This topic has been closed to new replies.

About this Topic