• 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)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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?

    Thread Starter calisun

    (@calisun)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    Can you link to a site having this problem?

    Thread Starter calisun

    (@calisun)

    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)
    https://employment-office.net/82/hiring-managers-view-of-your-resume-and-cover-letter/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter calisun

    (@calisun)

    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]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    Thread Starter calisun

    (@calisun)

    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
    primary-domain/new-site/

    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:
    primary-domain/new-site/
    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?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Maybe not domain mapping…

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

    Thread Starter calisun

    (@calisun)

    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:
    /%post_id%/%postname%/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    Thread Starter calisun

    (@calisun)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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?

    Thread Starter calisun

    (@calisun)

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well the issue is in your server setup. Since the image works when we remove ms-files.php from the equation (i.e. https://employment-office.net/wp-content/blogs.dir/4/files/2012/05/Hiring-Manager-Reading-resume_2-270×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.