• Resolved yspeert

    (@yspeert)


    Hey guys,

    Just installed my first WP network site. A mother with three daughters.

    The images in the mother work fine, appear in the media library etc.

    However, not so in the daughters, all media appear as broken images.

    Any idea how to fix this? Is this htaccess setting?

    Thanks,
    Arjan

Viewing 15 replies - 1 through 15 (of 26 total)
  • Try this one:

    http://wordpress.org/support/topic/images-no-appearing-on-a-site?replies=4

    (I recommend writing down what you are doing step by step, so you can go back to the originlal settings if you need to)

    Also, there is a lot of posts on this topic. Try Google too.

    1.Go to Super Admin > Sites, hover over the primary blog and click Edit
    2.Change “Upload Path” to wp-content/blogs.dir/1/files (this one was: wp-content/uploads)
    3.Change “Upload Url Path” to /files (this one was empty)
    4.Change “Fileupload Url” to http://domain.com/files (this one was: http://domain-name.com/wp-content/uploads)

    [removed spam]

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    arun nair – Please don’t promote your business here. Also DO NOT CHANGE THE UPLOAD PATH.

    Gosh, people, this stuff can and does work out of the box. Screwing around with settings, when you don’t know what you’re doing, will cause more problems!

    Now. Stop. Breathe 🙂 It’s all okay.

    1) Yes, it can be a .htaccess thing. Double check yours is okay.

    2) It’s more often a httpd.conf thing. Check that yours has allowoverride set to all (if you don’t know how, ask your webhost).

    Thread Starter yspeert

    (@yspeert)

    Breathing, stopping….

    My htaccess text:

    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]

    And the httpd.conf has been checked with my provider, allowoverride is indeed set to all, so no problem there…

    So is it the htaccess??

    Thanks!

    Arjan

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Are you using subdomains or subfolders for your sites?

    That is are the urls mother.com/daughter1 or daughter1.mother.com ?

    Thread Starter yspeert

    (@yspeert)

    Subdomains.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That’s the right one.

    Okay we’ll have to experiment a little here.

    Assuming a broken image is daughter1.mother.com/files/2012/06/image.jpg

    WHat happens if you go to daughter1.mother.com/wp-includes/ms-files.php?file=2012/06/image.jpg

    Thread Starter yspeert

    (@yspeert)

    Current path for a picture is e.g.:

    http://erfrecht.groningen-notaris.com/files/2012/06/A-notaris-testament-en-erfrecht.jpg
    (broken links)

    When I use:

    http://erfrecht.groningen-notaris.com/wp-includes/ms-files.php?file=2012/06/A-notaris-testament-en-erfrecht.jpg

    The picture actually appears in my browser… So that is good news I hope?

    Cheers,
    Arjan

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yes and no. It means that your .htaccess isn’t being respected :/ Which is usually what that httpd.conf setting is all about.

    What’s your AllowOverride set to?

    Long shot: Have you changed the domain name under network admin?

    (as super admin) network admin > sites > edit [site] > domain

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Which is the wrong way to do it… So I really hope you didn’t!

    Erm, yes. I should have clarified that. That’s the wrong way to do domain mapping! As wisely pointed out above; don’t do this. But undo it if you have.

    Domain mapping with sunrise is under Tools > Domain Mapping

    Thread Starter yspeert

    (@yspeert)

    Hey guys,

    Thank for all the input.

    AllowOverride was indeed set to all.

    I have not changed the domain name for the mother, but I have changed them for the daughters. E.g. the daughter erfrecht.groningen-notaris.com is mapped to a more userfriendly domain name; http://www.notaris-erfrecht.com

    Cheers,

    Arjan

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Mapped how? You used a plugin, right?

    Did they work before you mapped?

    Thread Starter yspeert

    (@yspeert)

    Yes,

    I use: WordPress MU Domain Mapping

    As we started the network we installed Domain Mapping before doing anything else, so did not try to change the header. So I don’t know if they worked before…

    Cheers,

    Arjan

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Images 'broken' in WP multisite’ is closed to new replies.