WordPress.org

Ready to get started?Download WordPress

Forums

Enable Media Replace
Replacing images often hangs (3 posts)

  1. SERC Marc
    Member
    Posted 2 years ago #

    I'm using a current version of WordPress hosted at DreamHost (shared server) with the current version of Replace Media Upload and very little else in the way of plugins or customizations.

    I've been working my way through a bunch of back posts replacing oversized, undersized, and wrong-color-profile images with better-processed ones, and have been having a heck of a time getting Replace Media Upload to behave like it should.

    The behavior is really inconsistent. Some of the time it works perfectly--click "Upload" and a few seconds later, boom, the new image is up. Other times it will sit "contacting" for maybe 30-60 seconds before finally responding and processing the request. And about half the time (literally), it will hang indefinitely and never respond at all (I left it overnight once to make absolutely sure).

    It's completely random so far as I can tell; doesn't seem to matter whether I replace just the file or update links, and if I go back and trying again with exactly the same image and options some of the time it will go through almost immediately. When it's working smoothly, it seems like three or four will go through in a row, but when I hit a problem one I might have to try a half dozen times before I finally get it to replace; I'm not sure if this is a problem image, or if it's a problem time period. Smaller replacement images (<100K) seem to help a bit, but that may be placebo effect.

    Any suggestions as to what might be causing this, and/or what I could do to resolve it? I absolutely love the plugin, but it's borderline useless to me with this behavior, and driving me nuts on top of it!

    http://wordpress.org/extend/plugins/enable-media-replace/

  2. SERC Marc
    Member
    Posted 2 years ago #

    An update after doing a bunch of experimentation: The stalls are being caused by images larger than about 120K.

    There may be a small ramp zone, but images over 150K almost never work (emphasis on almost--occasionally they will process), images under 120K work almost immediately (5 seconds or less), and images in between work at least some of the time.

    I'm assuming this is a server issue of some sort, but it's not a simple case of PHP's image processing tools choking, since the WordPress install itself is capable of processing large images. I know because some of the images I'm replacing are up into the 3000x2000 pixel range, with file sizes well over 1MB--that's one of the reasons I'm replacing them.

    Anybody ever seen something like this before?

  3. Måns Jonasson
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    I have not seen this myself, but it sounds very strange since you should be having the same problems upon initial upload.

    My plugin is using the very same internal WP methods to resize images as the internal file uploader does.

    If anything, the PHP settings for memory and/or execution time might be the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic