[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Enable Media Replace Wordpress Plugin not working

Posted on 2014-08-11
9
Medium Priority
?
1,112 Views
1 Endorsement
Last Modified: 2014-08-12
The enable media replace plugin does not appear to be working correctly in Wordpress. When I choose the option to "just replace the file", i.e., update the file while preserving the original links, it still pulls up the old copy of the pdf file. However if I choose the second option, i.e., upload the file with a new file name and links to the new file, it will display the latest version. How can I get it to show the latest version of the file while still keeping the original URL? I could upload a new file with a new name, but this would mean having to update all the links on the website and document templates which is a lot of work.
1
Comment
Question by:geeta_m9
  • 5
  • 4
9 Comments
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 2000 total points
ID: 40254844
Did you see the FAQ page for the plugin?

https://wordpress.org/plugins/enable-media-replace/faq/

I replaced a file, but it didn't change!

There are two main reasons this would happen.

First, make sure you are not viewing a cached version of the file, especially if you replaced an image. Press "Refresh" in your browser to make sure.

Second, if the file really looks unchanged, make sure WordPress has write permissions to the files in your uploads folder. If you have ever moved your WP installation (maybe when you moved it to a new server), the permissions on your uploaded files are commonly reset so that WordPress no longer has permissions to change the files. If you don't know how to do this, contact your web server operator.
1
 

Author Comment

by:geeta_m9
ID: 40256097
Thanks for this information. I do to think it is a browser caching issue and I tried clearing the cache in all the browser and it still didn't work. I have opened a ticket with the web hosting service and see what they have to say.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40256114
Not sure it's browser cache but rather WordPress caching.  Are you using a caching plugin (W3 Total Cache, Super Cache, etc) or are you on a host that provides caching as part of the hosting package (Varnish, etc.)?
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 

Author Comment

by:geeta_m9
ID: 40256238
Sorry, I meant to say that I didn't think it was a browser caching issue. I am using W3 Total Cache. One of the web server staff responded to my ticket and informed me that the FTW plugin is not detecting the update and recommended that I manually replace the url of the replaced media into the box of the FTW plugin and purge that media manually. I am trying to do that right now.
0
 

Author Comment

by:geeta_m9
ID: 40256243
It looks like I also have WP-Varnish installed.
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 40256546
Caching of any sort will screw with the media replacement capabilities plugin. You should dump/rebuild the entire cache after uploading the replacement file.
0
 

Author Comment

by:geeta_m9
ID: 40256569
I managed to solve the problem by entering the old url into the "Purge a URL box" (under Settings, FTW) and clicking on the purge button. Once I did that, it cleared the cache so that the next time I entered the url on the browser, it brought up the latest copy of the file.
Screen-Shot-2014-08-12-at-10.40.47-AM.pn
0
 

Author Comment

by:geeta_m9
ID: 40256575
Your assistance helped point me in the right direction to solve this problem. Thank you.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40256578
You're welcome.  Figured it had to be something simple in play.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question