Support » Networking WordPress » Wrong network admin URL

  • Hi all

    I am having an issue where I cannot access the network admin dashboard or sites pages under my sites, because the URL of the link is incorrect.

    When I correct this error by changing ( ‘PATH_CURRENT_SITE’,” ); to define( ‘PATH_CURRENT_SITE’,’/” ); i get a database error and cannot access the site at all.

    Can anyone help because I am desperate to get this resolved so I can start creating new sites.

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is the code I need to change from index.php, but I am not sure how to go about it.

    <li id="wp-admin-bar-network-admin-d" class=""><a href="">Dashboard</a>
    		<li id="wp-admin-bar-network-admin-s" class=""><a href="">Sites</a>
    		<li id="wp-admin-bar-network-admin-u" class=""><a href="">Users</a>
    		<li id="wp-admin-bar-network-admin-v" class=""><a href="">Visit Network</a>		</div>

    I have the sites accessible by manually changing the URL from network_admin_url to the FDQN, but it appears that are far too many places to make it easy to change.

    Can anyone help with changing the variable network_admin_url ?

    URL of the link is incorrect.

    What should it be and what are you seeing instead?

    Also did you use for your site or

    The domain I am using is not the issue. The issue is that the relative path that is converted to an FQDN by the network_admin_url variable?

    I cannot locate this in the database or in the php files.

    Can anyone help with this?

    The domain I am using is not the issue.

    I know that. What I asked is if you used or for your site. I know isn’t your domain. Is it Or is that a subsite?

    Because, guess what, there is known issue in rare cases, following an upgrade, where people with www in their domain names get ganked like that. And if you happen to have a more complex subdomain as your main site, and it’s happening to you, we now have more information.

    But since you seem to feel you know better, please yourself.

    I think this function is the issue. Can anyone help with this?

    function network_admin_url( $path = ‘/’, $scheme = ‘admin’ ) {
    if ( ! is_multisite() )
    return admin_url( $path, $scheme );

    $url = network_site_url (‘/’, $scheme);

    if ( !empty($path) && is_string($path) && strpos($path, ‘..’) === false )
    $url .= ltrim($path, ‘/’);

    return apply_filters(‘network_admin_url’, $url, $path)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong network admin URL’ is closed to new replies.