Support » Networking WordPress » Images not showing

  • Preserved

    (@preserved)


    Hi Everyone. I though I had multisite set up properly. My first site setup used the full domain. Everything went great. My second site set up fine, activated the theme just fine, but images uploaded don’t show. I can upload an image via media, and get no error. Lists of images are in the admin (no thumbnails). Looking via FTP, I can see the /wp-content/blogs.dir/2/files..and so on. My images are getting uploaded. However, they do not show in a browser.

    Looking at the code I as an example I see:
    http://subdomsin.thedomain.com/files/2012/07/header5.png

    I’d read that having a path that does not exist is normal? But then how to toubleshoot?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    What’s in your .htaccess?

    Did you check if AllowOverride is set to All in your httpd.conf?

    Preserved

    (@preserved)

    I’ll look at httpd.conf. Here’s my .htaccess:

    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)

    Lead Plugin Wrangler

    The .htaccess is good, so yeah, check the httpd.conf

    Preserved

    (@preserved)

    httpd.conf is good too. Hmm. Not sure that to check next.

    Preserved

    (@preserved)

    Looking at my settings.
    .htaccess is ok

    httpd.conf is supposedly ok. HostGator confirms AllowOverride is set to “All”.
    Blogs.dir set to 0775

    The site that won’t display the images is a subdomain site. The admin will upload the images properly to: /wp-content/blogs.dir/2/files I can see them via FTP.

    In the subdomain site, the browser URL to the images is /files/2012/07/images.png

    Does this look correct? Then what prevents the images from showing in a browser? Or in the admin?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

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

    That says ‘When you visit site.domain.com/files/2012/07/blah.jpg, I really mean site.domain.com/wp-includes/ms-files.php?file=/2012/07/blah.jpg and that’s actually over at site.domain.com//wp-content/blogs.dir/2/files/2012/07/blah.jpg’

    So what’s happening here is that .htaccess bit isn’t working. Which is what you have to tell Hostgator.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images not showing’ is closed to new replies.