WordPress.org

Forums

[resolved] multisite individual site settings ignored (8 posts)

  1. raisinlove
    Member
    Posted 3 years ago #

    Hi, I previously installed WordPress in multisite mode a few versions back. Unfortunately I can't recall which version exactly. Now I only see the base site (subdomains 'www') in the admin, upper left My Sites drop down.
    I *do* see the other subdomain sites under 'My Sites > network admin > sites' however, and they are still accessible individualy, with their respective content.
    The problem is that the individual site settings and selected themes are now being ignored.
    In fact, they're all defaulting to the one theme I havent activated for any of them, oddly enough.
    Any ideas where the problem might lie? Has anyone else experienced this?

  2. raisinlove
    Member
    Posted 3 years ago #

    Here's an update: I manually changed the settings for the individual blogs in phpMyadmin and got the proper themes working. Changing these settings via wp-admin remains ineffective however.

  3. raisinlove
    Member
    Posted 3 years ago #

    So while changing the theme fields manualy did affect the sites, the 'upload_path' field (index 56) is still being ignored...

  4. Not seeing the sites under 'my sites' just means you're not an admin of those specific sites. It's okay.

    Where are you changing the upload path? And why?

    You'd have to do it at wp-admin/network/site-info.php?id=1 and so on, but really you shouldn't be changing that.

    And THIS

    The problem is that the individual site settings and selected themes are now being ignored.

    Makes less sense, unless the ID yo're using for the DB doesn't have full access./

  5. raisinlove
    Member
    Posted 3 years ago #

    I mean I only changed the theme fields because they're weren't being taken into account via "wp-admin/network/site-info.php?id=3". The upload path in the database and in the wp-admin is as it should ("blogs.dir/3/files/file.jpg") , but WordPress is ignoring it for some reason, using just ("/files/file.jpg").

    Even if it were an ID issue with the database in changing values, why would the upload path be ignored?

  6. The upload path in the database and in the wp-admin is as it should ("blogs.dir/3/files/file.jpg") , but WordPress is ignoring it for some reason, using just ("/files/file.jpg").

    That's not a problem, that's how WordPress is SUPPOSED to work. Leave it alone :) It's not ignoring anything, it's trying to do it's job.

    WordPress uploads files into /blogs.dir/#/files/YYYY/MM/ however it's supposed to show the functinoal URL of domain.com/sitename/files/YYYY/MM/image.jpg

    Look at your .htaccess

    There's a line like this on subfolder installs:
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    and it's this on subdomains:
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    In both cases that says 'If I have 'files' then I should use wp-includes/ms-files.php to parse that without actually redirecting anyone.'

    Now it that isn't working, it normally means (1) you didn't edit your .htaccess like you're supposed to (see http://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite for examples) or (2) Your .htaccess isn't being honored, and you need to check that AllowOverride is set to ALL in your httpd.conf file.

  7. raisinlove
    Member
    Posted 3 years ago #

    Ah thank you, the htaccess was the problem, you pointed me in the right direction. The problem I had was a custom htaccess because my subdomains point to wordpress sub sites but my root is pointing to a Zend installation. I changed the order of a few rules and everything fell into place (I initially test the htaccess in it's pure wordpress state as per the codex and that confirmed it was an htaccess issue)
    thank you!

  8. sanjeevkhadka
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic