• One subsite on my multisite network stopped working while all others are fine. The problem is that it looks like its not using the assigned site path that is set in Network Admin->Sites->Edit for broken subsite

    The field is set correctly however, when I try to create a new page for this subsite it does not include the site path in the page permalink field.

    Also when I try to view any pages from within the pages section of this broken subsite it does not include the assigned site path for this subsite.

    Also when I click into the permalinks settings for this subsite none of the options include the assigned subsite path mentioned above.

    I also get similar results when trying to view any media – the url to the image does not include the subsite path so I am unable to view the image.

    As mentioned, this is only happening for one subsite on my network all the others are fine.

    For this subsite I have tried changing themes to 2014 and disabling all plugins but this did not fix anything..

    I also looked in the database for this subsite and can confirm the following for this subsite
    In the options table for this subsite the the subsite path is included in the the “siteurl” and the “home” field. I am not sure where else to check but it appears to me that everything is setup correctly – except that it doesn’t work… The subsite “path” is not being included in the various section in the subsite backend (pages, permalinks, media etc).

    I can create a new site in replace of this broken subsite but I really want to fix this so that this won’t keep happening as I have no idea whats caused this subsite to break.

    Thanks in advance for any help – much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SparkPlug29845

    (@sparkplug29845)

    Still no luck here… After some more digging here is some additional information I have found:

    I took a look at the code in /wp/wp-admin/options-permalink.php
    and added the following code to line 125

    if ($_GET['debug'] === 'true'){
        echo 'current_blog_id: '. get_current_blog_id() .'<br />';
        echo 'blogname: '. get_option( 'blogname' ) .'<br />';
        echo 'siteurl: '. get_option( 'siteurl' ) .'<br />';
        echo 'home: '. get_option( 'home' ) .'<br />';
    }

    Everything outputs correctly except that get_option( ‘home’ ) is returning the wrong value for this subsite – it returns the the domain to my primary multisite. so for example it should return:
    http://mymultisitenetwork.com/subsite9/
    however it just returns:
    http://mymultisitenetwork.com/

    All the other values are returned correctly ( get_current_blog_id(), get_option( ‘blogname’ ), get_option( ‘siteurl’ )

    When I check the other subsites in my network the get_option( ‘home’ ) returns the correct value for that subsite ( like: http://mymultisitenetwork.com/subsite2/ )

    I checked the options table in the database for this subsite “wp_9_options” and it has the correct value in there “http://mymultisitenetwork.com/subsite9/&#8221;

    So why when I output echo ‘home: ‘. get_option( ‘home’ ) .’
    ‘;
    it returns http://mymultisitenetwork.com/ ?

    Hopefully this new bit of information will be enough for someone to realize what the problem is here as I have no clue…

    Any help here would be greatly appreciated – thanks in advance!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Check the wp_blogs table as well, see if the path is listed there?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite subsite "path" is not being included in various sections’ is closed to new replies.