Support » Networking WordPress » Multisite media broken on subsites

  • Resolved nelmwp


    I have a fresh install of multisite but no matter what I do, I can’t get images to show up in the media library in any subsites (they work in the primary site). I’ve deleted the subsites, uploaded new htaccess fixes from here, cleared cookies and cache, disabled all plugins and themes, everything I can think of. The images are uploading, I can see them on the server, but the sites won’t link to or show them, only the broken image image.

    I’m on Bluehost, with Apache version 2.2.26, PHP version 5.2.17, MySQL version 5.5.35-log, Architecture x86_64, if any of that helps.

    Also, I had to install fresh multisite about six times before I could get it to not have either the redirect loop error or the 404 error (I deleted the database each time), if that makes any difference. I don’t know enough to know.

    Here’s my current htaccess:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
    AllowOverride AuthConfig Indexes

    In the subsite (new media-test site) settings it says “wp-content/blogs.dir/9/files” for the upload path.

    Any help would be so wonderful – thank you!!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • If you have a FRESH install of Multisite, then that’s the wrong .htaccess.

    The .htaccess (and handling of images) changed as of 3.5, so if you activated Multisite as of WP 3.5 or later, you don’t use ms-files anymore.

    Tried the code you suggested and created a new subsite. Still didn’t work.

    I think I’m going to give up. All I’m trying to do is have sites for my history classes and be able to have separate themes and yet post announcements to them from one dashboard. Since I’m not trying to set up multisite for other users to have their own blogs, I think I’m going to give up and just use something like ManageWP to be able to post to and update separate sites. I don’t think I’m tech-savvvy enough for Multisite.

    Thanks for the help though. I saw you on the wp watercooler video and found the whole discussion enlightening.


    I concur with nelmwp, there are some major changes to the way media file uploads work in the latest (3.8) WordPress release. My child site featured images in multi-site installs are now broken.

    Also, in the admin area, the media gallery is now empty in child sites.

    Pretty sure this is a bug. Any WP team members here who can verify this?


    Any one able to help with this?

    Some of my child site’s media files are stored in /wp-content/uploads and others are in /wp-content/blogs.dir/[site_id]

    And it’s disconcerting that the media gallery has totally disappeared from the child sites.

    I have no idea where to begin with this.




    Forum Moderator

    @oceanwind – starting your own thread will be a better way to get help. This one is marked resolved and it’s unlikely that your site is the same anyway.

    There’s clearly something amiss with the .htaccess file. But there seems to be more to it, since some images are in one system and others are in another???

    Using FireBug, I’m seeing that the images are being located like this:

    <img draggable="false" src="">

    But the file actually exists here:

    <img draggable="false" src="">

    Somehow the translation is not being made from the subdirectory child site name to the blogs.dir location…?



    Forum Moderator

    As posted above, you need to start your own thread – click here:

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Multisite media broken on subsites’ is closed to new replies.