Archive for the ‘General’ Category

Wordpress MU subdirectory fix

the install proces is creating half part of the table,
wp_1_comments ,
wp_1_links ,
wp_1_options ,
wp_1_postmeta ,
wp_1_posts ,
wp_1_terms ,
wp_1_term_relationships ,
wp_1_term_taxonomy ;

But not the other one, this is a new install.

I had this problem and it was caused by me having a plain wordpress install at the root level and MU install in a directory.

/ <- regular wordpress

/clients <- wordpress MU

to fix it open up the file “wp-blog-header.php”
look for

if ( !file_exists( dirname(__FILE__) . '/wp-config.php') &amp;&amp; !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')) {

should be around line 10-11ish
once you have found this comment out from the “&&” to the bracket just after the last “wp-config.php”
so you should have

if ( !file_exists( dirname(__FILE__) . '/wp-config.php') /*&amp;&amp; !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')*/) {

then try it again.


The problem is wordpress mu checks the current directory and then goes up one more level so for me it did the following

/clients – no wp-config.php
go up one level

/ – wp-config.php found
I’m sure that there is a point to this being there I’m just not sure what that is.
Hope that helps

Free Sprint phones for sale | Thanks to CD Rates, Reverse Phone and Registry Software