• 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 - 16 through 30 (of 42 total)
  • Thread Starter progers

    (@progers)

    Dreamhost says that there’s nothing in general that should cause one domain to not load resources from another domain or subdomain. They also say that it can mean a number of different things, so they would really need a specific example of what you are looking for.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    …. Okay. THANK you Dreamhost for being as excellent at supporting WP as you claim to be. (Sorry, I’m snippy at them, not you.)

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

    https://lincoln.playcreativeinc.com/wp-includes/ms-files.php?file=/2012/02/lincoln_footer_1.jpg uses the ms-files.php code to extract blog info and pull https://lincoln.playcreativeinc.com/wp-content/blogs.dir/3/files/2012/02/lincoln_footer_1.jpg

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

    That means the ms-files.php command isn’t allowed to run.

    You can try re-uploading the whole wp-includes server from a fresh copy, but pointing out to dreamhost that the file, which works perfectly for thousands of people, is not working on your server may be what they need to understand.

    Are there any errors in your php error log?

    Thread Starter progers

    (@progers)

    I will try to explain the situation better to them.

    Is there a way that I can test ms-files.php to determine what the actual problem is? Right now all I can do is assume that ms-files.php works, and that somehow the server is not set up correctly.

    And no there are no errors in my error.log file.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I don’t know of a way to test, sadly. Though if you have a post with images on the MAIN site that work, they too use the ms files usually. We could play with that?

    Thread Starter progers

    (@progers)

    I have tested the main site’s ability to display uploaded images via the media gallery and that works correctly.

    Maybe someone else knows a way to debug the ms-files.php code by walking through the request and seeing where things go wrong.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s a URL of an image that works on the main site?

    Thread Starter progers

    (@progers)

    Here is an image that works on the main site:

    https://www.playcreativeinc.com/wp-content/uploads/2012/02/lincoln_footer_3.jpg

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    https://www.playcreativeinc.com/wp-includes/ms-files.php?file=/2012/02/lincoln_footer_3.jpg does not work.

    So … that ms-files.php isn’t working.

    Did you turn off all your plugins?

    Thread Starter progers

    (@progers)

    I don’t have any plugins currently activated, they are all inactive.

    Does the main site even use ms-files.php? Or is that only for subsites? The reason I ask is because in the media library it uses the uploads directory rather than the blogs.dir directory for images.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The main site doesn’t use it out of the box, but it can (I forced mine to, just cause I’m a sicko). Something’s not letting that file work it’s magic.

    If all plugins are INactive, please rename the folder to plugins-old (there’s a reason, it’ll force everything to reload ‘cleanly’).

    Thread Starter progers

    (@progers)

    Renamed plugins to plugins-old and now the inactive ones don’t display listed under plugins. I tried logging in again to view the media library and the images still don’t display correctly.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Dreamhost….

    How did you install WP? Manually or via their one click installer?

    Thread Starter progers

    (@progers)

    I installed WordPress via their one-click custom installer. Also I did remove the option to include all the free themes that normally come with the installation.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Ugh. Their one-click will be the death of me.

    What’s the Multisite section of your wp-config look like?

    Thread Starter progers

    (@progers)

    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.playcreativeinc.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
Viewing 15 replies - 16 through 30 (of 42 total)
  • The topic ‘Multisite images cannot be displayed in subsites’ is closed to new replies.