admin管理员组文章数量:1404595
I have built my own WordPress theme and applied it to my WordPress website.
The issue I am having is out of the blue, the thumbnail images from the media gallery have stopped loading in and now just appear as blank squares... (Please see image)
I think this happened after I went into the server and deleted everything out of the wp uploads folder as I wanted to start fresh and through this would be the quickest way to get rid of all of the images.
Since then, it seems to not be loading in any thumbnails of any new images I upload so I can't see what is actually in the media library... Kind of annoying.
I have tried using the force Thumbnail regeneration plugin and this also didn't work.
How can I get the images back, please? :(
Thank you
I have built my own WordPress theme and applied it to my WordPress website.
The issue I am having is out of the blue, the thumbnail images from the media gallery have stopped loading in and now just appear as blank squares... (Please see image)
I think this happened after I went into the server and deleted everything out of the wp uploads folder as I wanted to start fresh and through this would be the quickest way to get rid of all of the images.
Since then, it seems to not be loading in any thumbnails of any new images I upload so I can't see what is actually in the media library... Kind of annoying.
I have tried using the force Thumbnail regeneration plugin and this also didn't work.
How can I get the images back, please? :(
Thank you
Share Improve this question asked Feb 13, 2019 at 10:53 Emma DalbyEmma Dalby 31 silver badge3 bronze badges 1- Just to mention - nothing in my theme should be impacting on the media library. It works fine in my dev area but not on my preview testing server – Emma Dalby Commented Feb 13, 2019 at 10:54
1 Answer
Reset to default 1Deleting the files out of the uploads folder is almost certainly the culprit here. Your theme may have custom code that affects the Media Library, but since you wrote it and you don't think there is you're probably right :) So we can assume it's the uploads folder. There is a database entry per file, and if those entries were not deleted now WordPress's database and the files don't line up.
You may get a clue as to what's happening if you inspect the missing thumbnail and see what the thumbnail URL it is is looking for is. What is the URL of the thumbnail, and does that file actually exist (verify via FTP)?
I'm not sure why it would affect new file uploads like you say, but since you don't have a lot of uploads anyways I would recommend starting from scratch with your uploads.
If you are able to click each of those missing thumbnails and manually delete the entry, until your media library is completely empty, do it that way.
Since there may be a database issue involved, I would personally suggest then going and looking in the database to make sure there aren't any leftover "attachment" type items in your wp_posts table. There's also some post_meta rows for each item. It would be great to know those are gone too, but that may be a little more difficult to work through if you have a lot of other posts, and they shouldn't matter if the posts are gone.
Then upload a new file and see what happens.
本文标签: uploadsThumbnail images missing in WP media library
版权声明:本文标题:uploads - Thumbnail images missing in WP media library 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744833611a2627497.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论