• Resolved climbingnarc

    (@climbingnarc)


    I have wordpress mu setup with 1 top level blog and a couple subdomain blogs that has been working fine for some time. Today I added the following code to my theme folder’s functions.php file (don’t ask), after which I have been unable to access the top level blog in any way (admin, posts, homepage, etc):

    function get_the_taxonomy( $id = false ) {
    	global $post;
    
    	$id = (int) $id;
    	if ( !$id )
    		$id = (int) $post->ID;
    
    	$categories = get_object_term_cache( $id, $taxonomy );
    	if ( false === $categories ) {
    		$categories = wp_get_object_terms( $id, $taxonomy );
    		wp_cache_add($id, $categories, $taxonomy.'_relationships');
    	}
    
    	if ( !empty( $categories ) )
    		usort( $categories, '_usort_terms_by_name' );
    	else
    		$categories = array();
    
    	foreach ( (array) array_keys( $categories ) as $key ) {
    		_make_cat_compat( $categories[$key] );
    	}
    
    	return $categories;
    }

    You can see what I’m talking about at https://climbingnarc.com.

    I’ve tried removing the code from the functions.php file and a few other things but nothing has made a difference.

    What’s strange is that I can still access the subdomain blogs and their admin interfaces, just not the top level blog.

    What did I do???

Viewing 4 replies - 1 through 4 (of 4 total)
  • You edited the main blog;s theme files. ?? And it has a mistake in it somewhere.

    That’s called a white Screen of Death and means a php error. upload a new fresh UNedited copy of the theme you had set on that blog.

    Thread Starter climbingnarc

    (@climbingnarc)

    I’ve deleted and re-uploaded the theme in question as well as the wordpress install files. Still white screen of death ??

    Thread Starter climbingnarc

    (@climbingnarc)

    Well, I was able to get things back by renaming the plugins folder then re-enabling them 1 at a time from there. Very frustrating, but happy to have things back.

    Plugins what was I was going to suggest next. ?? It’s pretty standard procedure then it whitescreens; check themes, check plugins.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Top level blog not working at all’ is closed to new replies.