• I’m running 6.4.1 WordPress, with a fair number of plugins.

    I was uploading some individual images to Foo Gallery, was going along fine, then suddenly the media library would no longer load. The only error seen was when trying to upload the last image, took a long time, then failed saying something to the effect that the server might be busy, or there are insufficient resources. Neither are true. I’m able to load the media library and upload images to another WP site on the same server.

    I rebooted the server. Didn’t help. I deactivated all plugins. Didn’t help. Reactivated all plugins. Didn’t help. Updated plugins that needed it. Didn’t help. Cleared the browser cache. Didn’t help.

    Happening on every PC I try from (chrome).

    Can’t be a plugin conflict, since I hadn’t loaded or updated any plugins while this was happening. I have a couple thousand images in the library, but I can’t imagine that there’s a hard limit to the number of files (apart from hard drive space on the server).

    Any ideas?

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter Steel Rat

    (@steel-rat)

    Ok I think I’ve got it. Looks like I was hitting the PHP timeout of 30 seconds, based on the /wp-content/debug.log. I upped it to 60 in my PHP ini, and I can see the media library again. Though why it would require more time now than it did, when it’s only loading 80 items at a time is beyond me.

    Is there a WP setting that will help this?

    Thread Starter Steel Rat

    (@steel-rat)

    Now there’s a file in the media library that’s “stuck”. It doesn’t show an image, just a placeholder. But I can’t delete it. I suspect that’s the culprit for the slow loading. I can delete it via FTP, but the db entry will still be there.

    Steel Rat, I am going to politely suggest that you seriously look at the number of plugins you have & carefully consider whether or not you need each one. These can take up resources & cause things to malfunction, or just slow down the site in general.

    Frankly, it’s 1 of the big reasons I like Nginx–when correctly configured, it uses a lot fewer resources, though I still suggest always carefully examining the use of every piece of 3rd-party software on any given site.

    Thread Starter Steel Rat

    (@steel-rat)

    I do need each one. Though having said that, I deleted a few during this event, so I have fewer now 🙂

    I still need to figure out how to get rid of the one stuck file…

    How big is the file? Perhaps check your post_max_size and upload_max_filesize & change those, if required.

    Thread Starter Steel Rat

    (@steel-rat)

    It’s well below that. It’s smaller than others I was already uploading. My max upload size is 50M.

    Thread Starter Steel Rat

    (@steel-rat)

    So I’m still having issues uploading. An image file that’s 850×850 and 640k, media library takes a long time, then tells me this:

    The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.

    I uploaded larger files earlier in the day, no system or WP changes were made. Just all of a sudden, this is happening. The files does get uploaded, but something isn’t right.

    I’ve increased the Max execution time and max input time to 120 each. This should be more than enough.

    Thread Starter Steel Rat

    (@steel-rat)

    So the same file uploads fine, within a few seconds, on another WP site on the same server. So none of the server settings are relevant. This has something to do with the one site. and it happened suddenly with no changes made. Extremely frustrating.

    I’ve added a lot of files for the Galleries this month. And with all the thumbnails WP creates, there are 2776 files in the uploads/2023/11 folder. Could the high number of files be the problem?

    Thread Starter Steel Rat

    (@steel-rat)

    Things have gone from bad to worse. I was at one point able to load the media library, after increasing the server timeouts from the default of 30 to 60. Shouldn’t have been necessary. But now it won’t load period. Just sits and spins.

    I’ve even deleted a couple hundred files from the November 2023 folder on the sever via FTP. Nothing. This is really messed up.

    Thread Starter Steel Rat

    (@steel-rat)

    I’ve deleted all files from the November 2023 folder. And the cached folder. Still the media library won’t load with All Dates or November 2023 selected. Previous months load fine.

    Does ANYONE have any ideas that aren’t server-related??

    Steel Rat, please disable all plugins, switch to a default theme–they start with the word ‘twenty’, & try loading the media library.

    I’m sorry about disappearing. I had a bit of a family emergency I had to tend to.

    If the media library loads w/all plugins deactivated & a default theme in place, then what needs to happen is a series of successive tests should be conducted until the culprit is found. First start by activating your site’s theme & see if the library loads. If so, then start activating plugins 1 by 1 & test each plugin in turn to ascertain that the library is still loading.

    I still wish I could see the error logs for this domain, because it really could be your database going away, etc, due to server resource limits being reached due to a large database.

    I think the other thing worth examining, if the above suggestions don’t help, is file permissions.

    My availability the next couple days will be somewhat sparse, but I’ll check in on this thread as I’m able. Certainly there are a lot of volunteers on here besides me who are more than capable of assisting you.

    Thread Starter Steel Rat

    (@steel-rat)

    I had done that early on, and it didn’t help.

    It’s working again as it should. Something became corrupted in the media library itself. I had to delete a lot of files, and run a plugin that repairs the database and image references.

    I still don’t know how it happened, which is the scary part.

    I do appreciate all your help!

    Thread Starter Steel Rat

    (@steel-rat)

    Well, it happened again.

    It seems I can’t rely on WP’s media library for much of anything beyond a few images here and there. Days of work down the drain.

    Can you ask your hosting company where your error logs are located?

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Media Library Suddenly Stopped Loading’ is closed to new replies.