WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Featured images have gone missing (12 posts)

  1. NWTD
    Member
    Posted 1 year ago #

    My featured images have gone missing, when looking at the source code it appears that the directory it's linked to is http://domain/subsite/files/image

    The directory heirarchy should be
    http://domain/blog.dir/subsite number/files/image

    correct?

    An example can be seen here.

  2. NWTD
    Member
    Posted 1 year ago #

    Also important to note that this happening across every site on this multisite network

  3. NWTD
    Member
    Posted 1 year ago #

    Following up on similar threads, some had issues caused by .htaccess. I haven't changed mine, but here's my .htaccess

    #BEGIN WordPress
    
    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).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    php_value upload_max_filesize 20M
    php_value post_max_size 20M
    php_value max_execution_time 200
    php_value max_input_time 200
    
    #END WordPress
  4. No, that;s not wrong.

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

    See how that says ^([_0-9a-zA-Z-]+/)?files/(.+) ? That cool code means that http://domain/subsite/files/image will be magically passed to http://domain/blog.dir/subsite number/files/image

    So that's fine. What's the real problem? Is http://domain/subsite/files/image not working?

  5. NWTD
    Member
    Posted 1 year ago #

    So that's fine. What's the real problem? Is http://domain/subsite/files/image not working?

    Correct. Any insight?

  6. What happens if you try to view that image directly?

    Is it a 404? A blank white page...?

  7. NWTD
    Member
    Posted 1 year ago #

    It shows nothing. Example

  8. That shows a broken image to me, actually, and tells me your httpd.conf file probably doesn't have AllowOverride set to All.

    That said, the images should be in http://nwtechanddesign.com/leira/files/2012/10/Bobbi-Romine1.jpg unless you changed them.

  9. NWTD
    Member
    Posted 1 year ago #

    As far as my ftp client shows me, this image is here: /nwtechanddesign.com/public_html/wp-content/blogs.dir/29/files/Bobbi-Romine1.jpg

  10. NWTD
    Member
    Posted 1 year ago #

    Assuming by the "AllowOveride set to All.", you meant to add

    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>

    to my .htaccess...this just crashed the site.

  11. httpd.conf

    Totally different file. Ask your webhost if you're not sure.

  12. NWTD
    Member
    Posted 1 year ago #

    That did it. Thank you for the insight.

Topic Closed

This topic has been closed to new replies.

About this Topic