WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite media broken on subsites (9 posts)

  1. nelmwp
    Member
    Posted 7 months ago #

    Hello
    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!!!!

  2. If you have a FRESH install of Multisite, then that's the wrong .htaccess.

    http://codex.wordpress.org/htaccess#WordPress_3.5_and_up

    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.

  3. nelmwp
    Member
    Posted 7 months ago #

    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.

    N

  4. OceanWind
    Member
    Posted 7 months ago #

    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?

    Thanks!

  5. OceanWind
    Member
    Posted 6 months ago #

    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.

    Thanks!

  6. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

    @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.

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

  7. OceanWind
    Member
    Posted 6 months ago #

    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???

  8. OceanWind
    Member
    Posted 6 months ago #

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

    <img draggable="false" src="http://eatlocalguide.com/sarasota/files/2011/03/Independence-300x234.jpg">

    But the file actually exists here:

    <img draggable="false" src="http://eatlocalguide.com/blogs.dir/3/files/2011/03/Independence-300x234.jpg">

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

  9. WPyogi
    Volunteer Moderator
    Posted 6 months ago #

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

    http://wordpress.org/support/forum/multisite#postform

Reply

You must log in to post.

About this Topic