Support » Networking WordPress » wpmu_current_site wrong

  • Hi all. I’ve screwed up my WP install.

    I’m a unix admin at a community college. I’m installing a WP network for faculty. This is going to be on a server where people have non-WP content as well as the WP pages served by this WP network.

    That means I can’t install at doc root. Create_A_Network says I can do that if I don’t mind my site being in a subdir.

    “If you wish to install WordPress in a folder AND have that folder name it will work.”

    I’m happy with, and URLS for my users’ WP sites.(eg for John Doe’s faculty site)

    It seems to be working OK, except I cannot create new sites. Under ‘My Sites’ all the ‘Network Admin’ (Dashboard,Sites,Users,Visit Network) point to… instead of

    I tried fiddling with the source a bit and I found wpmu_current_site() in wp-includes/ms-load.php. I added a print statement and it’s spitting out not

    My best guess is there is a constant or something that I’m not setting right. If I set $base = ‘/wordpress/’ it doesn’t seem to do anything. If I set define( ‘PATH_CURRENT_SITE’, ‘/wordpress/’ ); I get Error establishing database connection but I can see that wpmu_current_site is happy.

    In a properly configured WP Network where “you wish to install WordPress in a folder AND have that folder name” what do you need to do? If I need to set PATH_CURRENT_SITE and scrap the DB, I’m fine with that.

    Whew! Sorry for the long post. Thanks!



    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', ' );
    define( 'PATH_CURRENT_SITE', '/wordpress/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

  • The topic ‘wpmu_current_site wrong’ is closed to new replies.