Wordpress - Images not showing up in the Media Lib

2019-04-04 05:45发布

I have a huge problem with my Wordpress. My uploaded images don't list in the Media Library.

It is weird tho, it says I have 75 images, but display none. Take a look yourself.

75 images, none list

Even weirder, if I go into gallery (the images you uploaded in the page itself), the images list just fine.

I already tried deactivating all my plugins, didn't work. Cache can be easily put out of the question, because it happened on at least 4 different computers, with Macs, PCs, and navigating with Safari, Firefox and Chrome.

Another interesting fact is that if I upload the image directly trough the computer (with the "From Computer" tab), everything goes fine. Another website on the same server works just fine too. And just to add to the complexity, when I go to the media page in the Wordpress Admin, all images show up just fine.

Oh, and before I forget... applying any filters, or doing a research in the media will always come up with the same problem.

So there... that's where I'm at.

11条回答
别忘想泡老子
2楼-- · 2019-04-04 06:15

it was your permalinks... you must have changed to labeled-name... switch back to default.

that worked for me.

查看更多
等我变得足够好
3楼-- · 2019-04-04 06:15

I had a same problem just now, with missing media library images for my blog. The images appeared to be right there in the media library and were definitely on the actual web server (checked via FTP).

As Allen Z advised I did "check Settings → Media and make sure that Uploading Files folder is set to wp-content/uploads"

Mine were set to the default blank. I altered this to an absolute path http://www.example.com/wp-content/uploads

THIS DIDNT SOLVE THE PROBLEM when I refreshed the site in browser. However, I immediately changed the path back to blank (the default setting again) and everything came back! Woop

Everyone having this problem might want to try this before getting into the more technical fixes!

查看更多
爷的心禁止访问
4楼-- · 2019-04-04 06:16

check .htaccess file in root of wordpress, maybe there is a rule for /uploads directory. if so, remove it. but be careful and check which plugin did it, so disable the plugin, first.

查看更多
何必那么认真
5楼-- · 2019-04-04 06:21

Check Screen Options (dropdown tab in the upper right hand corner of the page), and make sure there are sane settings for what to show on screen. All the column settings should be checked, and there should be a positive number of media items being shown on screen.

If that is ok, then check Settings → Media and make sure that Uploading Files folder is set to wp-content/uploads.

I believe these are the only settings that can be changed from the administrative screens.

查看更多
ゆ 、 Hurt°
6楼-- · 2019-04-04 06:21

Here's something a guy on Wordpress forum showed us. Add the following to your functions.php file. (remember to create a backup of your functions.php first)

add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
  return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}

...it was that simple.

查看更多
闹够了就滚
7楼-- · 2019-04-04 06:21

I had this problem with wordpress 3.8.1 and it turned out that my functions.php wasn't saved as utf-8. Re-saved it and it

查看更多
登录 后发表回答