• Here is the error I am getting:

    The image "https://lincoln.playcreativeinc.com/files/2012/02/lincoln_footer_1.jpg" cannot be displayed because it contains errors.

    When I navigate to https://lincoln.playcreativeinc.com/wp-content/blogs.dir/3/files/2012/02/lincoln_footer_1.jpg the image shows up fine.

    When I use the media library for https://www.playcreativeinc.com images do not have this issue, only the subsites.

    Here is my .htaccess file:

    # 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

    After contacting Dreamhost here is what they say is in my httpd.conf file:

    AllowOverride AuthConfig FileInfo Indexes Limit
    Options=ExecCGI,Includes,Indexes,MultiViews,SymlinksIfOwnerMatch,FollowSymlinks

    To be clear I didn’t set any of the options up in this file, but is it specifying too many options? Should I change it to AllowOverride FileInfo Options?

Viewing 15 replies - 1 through 15 (of 42 total)
  • You can just try to write this,
    AllowOverride ALL
    and clear other options.

    Before you do this, remember first backup your original httpd.conf file.

    Actually, I have the same problem like yours.

    Hope it can help you.

    Thread Starter progers

    (@progers)

    After contacting Dreamhost they finally told me how to update httpd.conf. I updated the options to the following:

    <Directory /home/xxxxx>
    AllowOverride All
    </Directory>

    And the image still fails to load. I also tried AllowOverride FileInfo Options and that didn’t seem to work either.

    I wonder if I should restart the web server and or wait a while after updating the httpd.conf for it to work.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yes, recycle apache after you change httpd.conf.

    Thread Starter progers

    (@progers)

    I tried stopping and starting the web server after updating httpd.conf to:

    <Directory /home/xxxxx>
    AllowOverride All
    </Directory>

    and:

    <Directory /home/xxxxx>
    AllowOverride FileInfo Options
    </Directory>

    and the image still doesn’t load. In the httpd.conf file I did notice this though:

    <Directory>
    AllowOverride None
    </Directory>
    ...
    <Directory /home/xxxxx>
    AllowOverride All
    </Directory>
    ...
    <Directory /home/xxxxx/playcreativeinc.com>
    AddHandler cgi-script .cgi .pl .py
    Options Includes Indexes SymLinksIfOwnerMatch ExecCGI
    ...large block of code
    </Directory>

    Should I change the empty directory at the top to AllowOverride All? Should I add AllowOverride All, (which doesn’t seem to specify it right now), to the playcreativeinc.com directory?

    Thread Starter progers

    (@progers)

    I was playing around with the settings and I tried AllowOverride All, AllowOverride FileInfo Options, AllowOverride FileInfo Options All in the empty directory, /home/xxxxx/, and /home/xxxxx/playcreativeinc.com and none of those configurations worked correctly.

    I restarted apache after each change as well.

    I also was reading around some other posts and thought my RewriteRule was incorrect in .htaccess so I tried to update it to:

    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    but that did not work either. So I reverted it back to:

    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Your .htaccess is correct for Subdomains. Is that what you’re using?

    all information is correct and working nicely so thanks for providing it here

    Thread Starter progers

    (@progers)

    Yes I’m using subdomains, here is what Network Setup says I should be using under Network Admin:

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

    (@ipstenu)

    ?????? Advisor and Activist

    Did the images work before you mapped domains?

    Thread Starter progers

    (@progers)

    They work just fine in the admin site, just not the subsites.

    https://www.playcreativeinc.com – works correctly
    lincoln.playcreativeinc.com – does not work correctly

    I’m sorry for not understanding this but what do you mean before I mapped domains?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Oh I don’t know WHY I thought you were mapping domains. Sorry, I’m de-caffinated today.

    https://lincoln.playcreativeinc.com/files/2012/02/lincoln_footer_1.jpg is a BROKEN image…

    Do you have any hotlink protection turned on?

    Thread Starter progers

    (@progers)

    Both .htaccess and httpd.conf do not contain any hotlink protection. Is there somewhere else this could be checked?

    I think the image itself is okay, when I use the directory structure to view the image it displays just fine:

    https://lincoln.playcreativeinc.com/wp-content/blogs.dir/3/files/2012/02/lincoln_footer_1.jpg

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yes, but the SHORTER URL not working means there’s a problem ??

    https://lincoln.playcreativeinc.com/wp-includes/ms-files.php?file=/2012/02/lincoln_footer_1.jpg

    doesn’t work either. Does the server allow for cross subdomain data?

    Thread Starter progers

    (@progers)

    I’m not sure about that, how do I check for that?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Ask Dreamhost.

Viewing 15 replies - 1 through 15 (of 42 total)
  • The topic ‘Multisite images cannot be displayed in subsites’ is closed to new replies.