Unable to display media in media library in 5.0.3
-
I’m running WP on RHEL7 using apache 2.4 and PHP-FPM 7.0 installed from the EPEL repo.
Our production site is running multisite WP 4.9.9 and our test site is running 5.0.3.
The problem that I’ve observed is that on our test system (WP 5.0.3), any media
uploaded does not display in the media library. In the media library it looks
like an icon with a broken link for the image; no thumbnail. If I go out to the
filesystem (WP_ROOT/wp-content/blogs.dir/’blog_id’/files/%Y/%M/) the files are
present with the correct permissions, but if I try to display them from the link
given in the media library, I get a 404 error.Obviously, the first thing I tried was disabling all of the plugins. All plugins
were disabled and the problem persisted. I next tried changing the permalinks,
first to plain and then back to “Month and name”; neither resulted in a successful
display of the JPG file in the media library. I tried creating a new post and
that was successful. I next tried installing and activating the “Health Check &
Troubleshooting” plugin. In the section on “REST API availability”, I get the
error messageThe REST API request failed due to an error.
Error encountered: (0) cURL error 28: Operation timed out after 10001
milliseconds with 0 out of -1 bytes receivedOur production system that is running WP 4.9.9 gives a similar REST API error
when running the Health Check plugin but all media thumbnails are displayed
in the media library as is the actual media within a post.Therefore, given that the two systems are identical except for the running
version of WP, and that this behavior is observed when all plugins are
disabled, is it possible that the problem is with the REST API? If so, how
would it be disabled and how can I enable it?Thanks,
Mike
- The topic ‘Unable to display media in media library in 5.0.3’ is closed to new replies.