The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. sandypasq
    Posted 3 years 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


  2. Måns Jonasson
    Plugin Author

    Posted 3 years ago #

    I hope to get this fixed today.

  3. sandypasq
    Posted 3 years 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.


    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
    Plugin Author

    Posted 3 years 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
    Plugin Author

    Posted 3 years 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

  • Enable Media Replace
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic