Links not being updated
-
I noticed what might be a small bug in this plugin. It works great for me when I simply want to replace a file. If I want to replace a file with one that has a new name, the selected option does not update the links on the page.
-
This sounds strange, as this is a core feature of the plugin. Could you elaborate – what links are not replaced, what files, etc?
The procedure that I follow involves updating a price list on my company’s web site. There are two links on every product page pointing to the price list. You can see a typical page here.
https://www.diamond-safety.com/ultra-tuff/ The links are in the red “Price List” graphic and in the “downloads” tab at the bottom of the page.I attempted to replace the price lists on this page yesterday. I selected the second options in your app’s dialogue. The pdf document was replaced in the media folder but neither link was updated. I manually updated the link in the red graphic but left the one in the downloads tab unchanged so you could see the broken link.
I can easily work around this bug but it would sure be nice if that feature worked as I am sure you designed it to.
The files that am trying to replace are typically PDF files if that makes a difference.
Thanks for your help.
Bob
Hi I have the same issue. I choose to replace and update all links, and the links dont get updated. All old links still point to the old file, which was deleted. so I get a 404/.
I sure hope that a solution is found soon. As of now, this plugin is not very useful to me. I have reverted to manual image replacements. It takes a lot more time but gets the job done.
Is this plugin still under development? or still actively updated? This problem is all over forums, and has been for a long while, and the response from the Author is always the same, and then no fix…. yes the core feature doesnt work/. uninstalling. This issue is all over the reviews in WP.org
Yes, I am here. ?? I’ve just been on vacation a couple of days.
I don’t know what to do about your issue though. I have a couple of reports like yours, but quite few, and since I don’t get more information (such as error messages from log files, etc) I don’t know what is causing the problems for you.
I personally run this plugin on about 10-20 sites, on different servers, and I don’t have these problems. This leads me to think that the problem is not necessarily within the plugin, but possibly with the way filenames are handled on different servers, or something completely different.
What would help me is if you could look in your PHP error log or enable debugging on your site, and test again to let me know what error messages show up.
For @dsafety: I took a look on your page. One the links was updated and not the other. The other one being the one in the “Downloads” tab.
Question: Is that box under “links and downloads” generated by some plugin? My plugin can not perform a search-and-replace in all database tables on the server, only the core WordPress tables for posts/pages.
Actually, I had to manually update the links in the main body of the page. I left the one in the Downloads Tab unchanged so you could see what the problem looked like. I have since manually updated that link as well.
Tabs are generated by shortcodes produced by a plugin called Tabby.
For me, the problem remains that this plugin does not update links when an image is replaced and the “Replace the file, use new file name and update all links” option is selected.
Too bad, if this worked it would be a huge time saver.
The plugin doesn’t do image embed replacements for other sizes than full size, since the new thumbnails can be a different size and therefore break the design of your page.
EMR can’t replace the file URL in the Tabby plugin probably because it stores its data somewhere outside the regular wp_posts table.
I don’t understand. I experienced this problem on a number of occasions but the one that concerns me most is the inability to update a price list PDF. The new image and old image are the same size. The only difference is in the text contained in the PDF. The images should be the same size.
It’s not that your photo is or isn’t the same size – it’s that I programatically don’t know whether it is, and therefore won’t update it because it could break layouts. This might change in the future, but that is the behaviour of the plugin right now.
Note that this is only the case if you upload a new image and decide to let EMR change the name. If you choose the first option and keep the old filename, the image will be replaced!
And the price list PDF is updated – but I can’t replace the link from your Tabby box, because my plugin doesn’t know where that link is stored – it is not stored in the regular wp_posts table or it would be updated.
Here again – if you choose the first option and keep the old file name, the file will be updated and the link will work.
Thanks, I will give that a try. Changing the file name for documents that are regularly updated is the best way to make sure that links point to the correct document. I am hopeful that you will find a way to deal with this at some point.
Under what circumstances can the second option be used successfully?
True, but changing the file name also kills old links, which will return 404. It’s a matter of choice and different use cases.
The second option can be used sucessfully if you are updating say a PDF and you have internal links to it.
Say your file is called “one.pdf” and you upload “two.pdf” and choose to replace the name and links. This plugin will then do a search-and-replace on wp_posts to updated all links pointing to “one.pdf” to “two.pdf”. This also works for images – but NOT if the image is a different size than original. The reason for this is complicated. ??
I am still confused. I have a PDF called price-list-2-10-2014 and want to replace it with another PDF called price-list-3-11-2015. Based on your last post, this should work but it does not for me.
The image gets replaced and renamed but the links still point to the old image and return a 404. The links that I am hoping will get updated reside two places, in a .png image called “Price List” and in a text area in one of the tabby tabs.
I can understand that there may be a problem in the Tabby area but why do the links not get updated in the .png image? Could it be that links only get updated if they are in a plain text area?
I just thought of something else which could complicating this process. All my pages are created using the WYSWIG plugin PageBuilder by Site Origin. Could that extra layer be causing the problem?
I’m able to duplicate the problem just by changing the text in the text editor. Which to me indicates a problem with the plugin.
If I put an anchor tag to a media file in the text editor with no other text, the plugin works fine. If I put an anchor tag to a media file in the text editor along with a percent character (%) immediately following the anchor tag, the tag’s href attribute will NOT update when using the “Replace the file, use new file name and update all links” option.
I’ve tested this with both image files (.png, .jpg, etc..) and other file types (.pdf, .xls, etc…) and am getting the same result. Can others please verify that a post containing only an anchor tag will update while a post containing an anchor tag and a percent character will not.
- The topic ‘Links not being updated’ is closed to new replies.