MULTISITE not defined
-
Recently we upgraded a WPMU 2.7.1 server to WordPress 3.0. We were initially pleasantly surprised – it all just worked. But today we realized that uploading media files wasn’t working.
function wp_upload_dir() is returning an erroneous value for the url. It is correctly returning “wp-content/blogs.dir/1/files” as the path, but is returning “files” as the url. This is happening because the $main_override variable is false, which is because MULTISITE is not defined anywhere. If I define MULTISITE in wp-config, WordPress responds to any request saying that some SQL tables are out of whack.
I’ve solved the problem in nginx by creating a rewrite rule, but I wonder if this lack of a MULTISITE definition is going to bite us in other ways. Posting here for some insight – is this a bug or defect, or is it just a result of our non-standard upgrade path?
Thanks in advance,
Benps. nginx rewrite rule, in case it helps anyone:
location /files {
rewrite ^.*/files/(.*)/(.*)/(.*) https://67.23.3.6/wp-content/blogs.dir/1/files/$1/$2/$3;
}
- The topic ‘MULTISITE not defined’ is closed to new replies.