Support » Networking WordPress » Featured images have gone missing

  • Resolved NWTD

    (@nwtechie)


    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • NWTD

    (@nwtechie)

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

    NWTD

    (@nwtechie)

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

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    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?

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

    Correct. Any insight?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    What happens if you try to view that image directly?

    Is it a 404? A blank white page…?

    It shows nothing. Example

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    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.

    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

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    httpd.conf

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

    That did it. Thank you for the insight.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Featured images have gone missing’ is closed to new replies.