WordPress.org

Ready to get started?Download WordPress

Forums

Enable Media Replace
[resolved] Having issue with WP 3.5 (5 posts)

  1. sandypasq
    Member
    Posted 1 year ago #

    Here is error i get when trying to replace a file
    (I removed the exact url of my website for security reasons)

    Warning: Invalid argument supplied for foreach() in
    wp-content/plugins/enable-media-replace/upload.php on line 55

    Warning: Cannot modify header information - headers already sent by (output started at wp-content/plugins/enable-media-replace/upload.php:55) in wp-includes/pluggable.php on line 876
    Thank you for creating with WordPress.

    Version 3.5

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

  2. Måns Jonasson
    Member
    Plugin Author

    Posted 1 year ago #

    I hope to get this fixed today.

  3. sandypasq
    Member
    Posted 1 year ago #

    Thank you. The plugin is working now. I did notice one difference from how it used to function.

    Before the update,

    after selecting "Just Replace", the image file would display as the new file immediately.
    There was no "cache" issue with the old file still displaying.

    Now,

    after "Just Replacing", the old image file thumbnail still displays in the media manager, even though the new file is indeed uploaded. If you open in a new tab and refresh a few times, then it displays correctly. but i don't remember it doing this before. It would immediately display the new image file.

    Am i correct?

    Thank you for the fast response to my initial post. Excellent job!!

    I really appreciate it.

  4. Måns Jonasson
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Sandypasq,

    the browser caching of the preview thumbnail is an issue that is sadly out of my control. I see it sometimes on my own sites as well, and it has to do with how the browser determines that it already has that particular image in the cache. There is no way for me from the plugin/server side to invalidate the browser cached images, unfortunately.

  5. Måns Jonasson
    Member
    Plugin Author

    Posted 1 year ago #

    Oh, to answer your question. :)

    No, it's not a new behaviour, it has been present since the first version of the plugin. You'll probably find (as I have) that it seems to happen sometimes, quite randomly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic