M?ns Jonasson
Forum Replies Created
-
Forum: Plugins
In reply to: [Enable Media Replace] Roles editorWell, I follow the capabilities as WordPress gives them, so only users who can upload/delete files can replace them.
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 linkI’ve commented out the number of updates, I’ll hopefully use it in a later version of the plugin.
The most likely way the replace of links would fail is if the site has been moved (as you say) and the basename of the file location in the database no longer matches the links that were inserted in an earlier version of the site.
Like, possibly your attachment data in database states that files are located at domain/wordpress/wp-content/uploads/yyyy/mm but in your links they are at domain/wp-content…etc.
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 linkI want to believe this bug is fixed now in 3.1.1. Please update and try!
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 link@mbsharp could you please take a look at _how_ the links are made in the pages/posts where they are _not_ updated?
Is it possible that the links that are _not_ updated are not inserted with full domain name and path? EMR is looking for the WordPress standard linking, such as:
<a href="https://www.example.com/wordpress/wp-content/2017/07/myfile.pdf" />
Not:
<a href="/wp-content/2017/07/myfile.pdf" />
or similar variants.
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 linkActually @mbsharp, I take that back. It seems I can indeed replicate the bug. I’ll take a look at it right away.
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 linkI simply can’t replicate this bug. The updating of links is done through an SQL query, which I’ve gone over several times. I’ll need more help to identify why this would happen, as I don’t see it in my own 10+ installations.
Forum: Plugins
In reply to: [Enable Media Replace] Simply not workingThis sounds more like a caching issue with your browser. Please empty the cache to make sure you don’t see old versions of the file.
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 linkIt should indeed replace all links. Are you sure your pages are not cached?
Forum: Plugins
In reply to: [Enable Media Replace] Replacing file with new name only updates 1 linkPlease try new version 3.1
Forum: Plugins
In reply to: [Enable Media Replace] Doesn’t appear to be workingI don’t know, but the plugin is tested with all new versions of WP and works fine. Are you sure you are not attempting to upload a file that is too large?
Forum: Plugins
In reply to: [Enable Media Replace] Error Message received when replacing imageHello,
very difficult to know what is going wrong on your end based on that error message, unfortunately.
Forum: Plugins
In reply to: [Enable Media Replace] Bulk replaceUnfortunately, that’s not on my plans.
Forum: Plugins
In reply to: [Enable Media Replace] Simply not workingWell, yes, the plugin works fine. It is very hard to know why it won’t work for you, but the most common error is that the file permissions for the files you are attempting to replace are wrong.
Forum: Plugins
In reply to: [Enable Media Replace] File gets updated, links in posts notGood to hear!
Forum: Plugins
In reply to: [Enable Media Replace] Support for ACF – replace in post meta?Absolutely! I’m very short on time for developing this plugin at the moment, so a PR eould be most welcome. Github URL is https://github.com/mansj/enable-media-replace. Thanks!