Support » Networking WordPress » images in mappped domains

  • Primary domain works fine, images upload fine and they show up in posts.
    On mapped domains, the images upload and I can see them in the media library, but they don’t show up in the post, not even the broken image icon, nothing. Only way I can see anything where the image is supposed to be is when I write an image caption, and that shows up, otherwise nothing.

Viewing 15 replies - 1 through 15 (of 42 total)
  • Do they show up in the view-source?

    Have you tried a different theme?

    Did they work BEFORE you mapped domains?

    Are you using any hotlink protection and, if so, did you remember to allow your mapped domains?

    Ipstenu, thank you for your reply:

    Do they show up in the view-source?

    Yes, when I edit the post, I can see the picture, but it does not show up when I update and view the page.

    Have you tried a different theme?

    Yes, I use Coraline theme, so I have tried changing to TwentyTen and TwentyEleven, and same result, no image.

    Did they work BEFORE you mapped domains?

    Not sure, I have installed mapping plugin on a new wordpress install.
    I have been spending my time getting my primary domain looking the way I want, so all uploads show up fine in the primary domain.
    I have been putting posts on my mapped domains and I did upload new header in the mapped domain, and that all works fine. This is the first time I have tried adding an image into a post, so I am not sure if the problem has always been there or if my recent update to 3.3.2 has changed anything.

    Are you using any hotlink protection?

    No hotlink protection as of right now.

    Okay, you should always, always, always, test that Multisite works before you map it.

    Can you link to a site having this problem?

    You are right, I did test on the primary domain, but I did not think of testing subdirectory before mapping them.

    The domain in question is: (You can see image caption “Hiring Manager Reading resume” but no image)

    here is contents of my .htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    That looks good, so odds are it’s your httpd.conf file. Can you check if it has allowoverride set to ALL?

    yes, it is: AllowOverride all

    Now I have found something strange, to test it, I have created another site under the same primary domain, but I did not map it, so it is

    I went into the newly created site and I have uploaded an image into a “Hello world!” post. After updating and logging out from admin panel and after going to:
    I can see the image inside the post.
    To further test, I have uploaded image into “Sample Page” and it also shows up.

    So it looks like it is an issue with domain mapping.
    Where should I go from here to fix the issue?

    Maybe not domain mapping…

    Can you switch themes? Or test THAT theme on a the test site?

    Further testing,
    my unmapped site used TwentyEleven theme, so I switched the theme to Coraline (Same theme as domain with problems) and previously uploaded images showed up fine. Just to make sure, I have uploaded additional image, and it showed up fine.

    Then I mapped this site to a domain, once I went to the newly mapped domain_com, the post shows, but just like before, images Don’t show up.

    Then to further test, I un-mapped the site, and once I went to
    the primary-domain/site/ the images showed up fine again.

    FYI, I use the same Custom Permalink Settings for both mapped and un-mapped site:

    Given that I know, personally, mapped domains don’t cause this issue, I’m going to GUESS you have some hotlink protection going on :/

    I don’t have any hotlink protection installed.
    Just to make sure, I have deactivated ALL plugins (Except for WordPress MU Domain Mapping) and still, no images in mapped domain post.

    I am 100% sure it’s not the plugin.

    It’s GOT to be the server setup. Somewhere in there it doesn’t think it’s allowed to show images…

    yes, it is: AllowOverride all

    Wait, for ALL the domains?

    On my server you enable/disable settings per directory and all domains pointing to that directory follow permissions of that directory.
    The directory that my wordpress is installed in, it has:
    AllowOverride all
    FollowSymLinks enabled

    Well the issue is in your server setup. Since the image works when we remove ms-files.php from the equation (i.e.×300.jpg works fine) then the most common issue is that httpd.conf.

    What server setup are you on?

Viewing 15 replies - 1 through 15 (of 42 total)
  • The topic ‘images in mappped domains’ is closed to new replies.