Media library partially broken
-
Hi everyone!
I’ve been running a WordPress installation for some time now on my own virtual LAMP server and so far everything worked fine. But since the server crashed violently recently, I’m encountering a strange problem: In media library in the admin backend, for most images (mostly JPEG, some PNG) no thumbnails are shown but only a standard grey icon. For a few images however, proper thumbnails are still shown.
This effect has so far also “survived” at least to automatic updates of WordPress.At first, I checked the access rights of the image files in the file system and they look OK. Also the image files which show the icon problem in the media library are shown just fine when directly in the browser with a deeplink.
In an attempt to further troubleshoot this, I’ve doug my way through the WordPress code down to WP_Object_Cache::get() in /wp-includes/cache.php. When called in the context of a “good” image file, it returns an array with two elements “_wp_attached_file” and “_wp_attachment_metadata” with the first of which containing the path to the image file. But when called in the context of a “bad” image file (i.e. an image that is shown with a default icon in the media library), it just returns an empty array.This was the point where I couldn’t get any further. How exactly is WordPress’ caching mechanism filled with data?
Or, going back to the original problem: Has anyone experienced this so far? What could be a solution to this problem?Best regards
sjs77
- The topic ‘Media library partially broken’ is closed to new replies.