WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Featured Images Missing After Migration on WP Multisite (15 posts)

  1. David Radovanovic
    Member
    Posted 7 months ago #

    Featured images and thumbs are not displaying in the Media edit. These are some of the actions I've taken to correct it though no luck and notes:

      1. All thumbs exist on server: the thumbs are being generated on upload.
      2. Deactivated all plugins: no conflicts.
      3. Changed theme to Twenty Twelve: not a theme issue.
      4. Double checked file/folder permissions: this could still be an issue, though it's not obvious.
      5. Checked .htaccess file: this could also be an issue though not obvious.
      6. Changed all references (URL) to previous server to reflect new server: eliminated urls pointing to images on old server.
      7. Enabled debug and nothing would indicate a related issue: just deprecated notices.
      8. GD libraries are installed properly on server: eliminated GD not installed.
      9. All the sites on this MultiSite install have the same issue: eliminate specific site setting.
      10. Checked upload paths which is typically blank: it was blank.

    You can check http://www.hrnerr.org/neers-research/river-bottom-mapping and see that there's a missing image on top of post which is the featured image. Obviously the code is failing to print the image url, e.g. - <img src="" class="single-thumb" alt="River Bottom Mapping" width="960px" height="240px">. Here's another example of missing images: http://www.esopuscreekconservancy.org/gallery/trail-views/

    Can anyone give me the next obvious step to troubleshoot before I setup an entirely new WP install?

    Thanks!

  2. Have you tried a different theme?

    What's in your .htaccess?

    Are these subfolders or subdomains?

  3. David Radovanovic
    Member
    Posted 7 months ago #

    Yes. Tried 2012.
    Will attach.
    Subdomains.

  4. David Radovanovic
    Member
    Posted 7 months ago #

    # RewriteEngine On
    # RewriteCond %{HTTP_HOST} ^creativecrib\.com
    # RewriteCond %{REQUEST_METHOD} GET
    # RewriteCond %{REQUEST_URI} /wp-login.php
    # RewriteRule (.*) http://www.creativecrib.com/$1 [L,R=302]
    
    php_flag display_errors off 
    
    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    RewriteEngine On
    RewriteCond %{REQUEST_URI} wp-content/uploads/sites/7
    RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/new-nine-adaptive-images/adaptive-images.php [L]
    RewriteCond %{REQUEST_URI} wp-content/uploads/sites/9
    RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/new-nine-adaptive-images/adaptive-images.php [L]
    
    # END WordPress
    
    RewriteEngine On
    RewriteRule ^(.*/)?\.svn/ - [F,L]
    ErrorDocument 403 "Access Forbidden"
  5. RewriteEngine On
    RewriteCond %{REQUEST_URI} wp-content/uploads/sites/7
    RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/new-nine-adaptive-images/adaptive-images.php [L]
    RewriteCond %{REQUEST_URI} wp-content/uploads/sites/9
    RewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/new-nine-adaptive-images/adaptive-images.php [L]

    What's with that?

  6. David Radovanovic
    Member
    Posted 7 months ago #

    new nine adaptive image plugin... should I comment it out?

  7. David Radovanovic
    Member
    Posted 7 months ago #

    I removed the lines in question: same result: no change.

  8. Is this happening on all your sites or just some?

  9. David Radovanovic
    Member
    Posted 7 months ago #

    All. I checked everything other than database relation between post ID and thumbs. However, I searched around and found "Force Generate Thumbnails" and after activating it per site the thumbnails began reappearing. So, I activated it Network-wide and voila, they all returned. This is too strange, since what FGT plugin does is force GD image processing. I always though GD was a core dependency and thumbs are created automagically on upload?

  10. GD or ImageMagick. I think IM is the correct default, with GD as a fallback, but it makes it out to be probably a server error. Check your server's error logs?

  11. skaag
    Member
    Posted 7 months ago #

    Hi, I am helping David with the server stuff. There are no errors on the server, and that's one of the problems we are experiencing that make it difficult to track the issue.

    I have error_reporting set to E_ALL, I have Display Errors, and all warnings / errors are logged into a log file, but there's nothing there when the image fails to render. We also made sure to enable DEBUG in wp-config.php and still nothing shows up.

  12. That is mindboggling...

    What are the server specs? Apache/php/extensions etc?

  13. skaag
    Member
    Posted 7 months ago #

    Ok so when I disable this:

    ;extension=imagick.so

    It works again. Because it falls back to GD, which is also installed, and apparently working fine. This prompted me to do some digging, and I discovered that imagick.so was depending on libraries that were missing.

    So this is turning out to be an issue of missing and conflicting libraries. I'm going to recompile imagemagick and all the dependencies and that will probably fix it.

    It's just frustrating because no errors show up anywhere, making it really difficult to track down the problem.

  14. David Radovanovic
    Member
    Posted 7 months ago #

    Yeah, Half-Elf and skaag! Thanks. Resolved.

  15. jeffandpatty
    Member
    Posted 1 month ago #

    Hi everyone ~

    Thank you for your work on my problem.

    I'm sorry to say the problem has not been resolved.

    Only two images have come back.

    This page, for example: http://www.homesittingcouple.com/?page_id=63

    It is loaded with images and only the featured image is there.

    Only one other page has a featured image - it is still missing from the other three pages.

    Is there any hope for this situation?

    THANK YOU!!!

    ~ Jeff Knutson

Reply

You must log in to post.

About this Topic