Ben Balter
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Document Revisions] Upload document error after update to 4.0.4Glad to hear. Thanks for confirming.
Forum: Plugins
In reply to: [WP Document Revisions] Upload document error after update to 4.0.4@valicesupport — thanks for the detailed testing. There are actually two separate issues being discussed in this thread, so let me split them out.
The “new version doesn’t replace the file” problem you’re seeing on 5.0 (the document keeps serving the original file even though it shows a revision) is the attachment ID not reliably saving on upload, so the document keeps pointing at the old file. There’s a fix for that in https://github.com/wp-document-revisions/wp-document-revisions/pull/540, and @NeilWJames is taking it further — reworking the document upload to use WordPress’s modern media uploader and managing the file entirely server-side. That consolidated work is a few days out, so rather than ship the interim patch I’d like to fold these together into one release. I’ll follow up here when it’s ready; if you’re able to test before then, the branch on #540 addresses the save issue specifically.
@ennisprinting — you’re hitting a different issue, and I was able to reproduce it. After uploading, instead of returning to the post you land on WordPress’s media details screen (Title, Caption, Description, “Insert into post”, “Save all changes”). The plugin is supposed to close that upload window automatically; on recent WordPress (6.9/7.0) it was hooking in a moment too early — before WordPress finished initializing its uploader — and not retrying, so the window stayed open.
Good news on two fronts: I have a targeted fix for the current version (https://github.com/wp-document-revisions/wp-document-revisions/pull/541, confirmed against WordPress 7.0 with a test that runs a real file through the upload window), and the broader rework @NeilWJames is doing replaces that old upload window with WordPress’s modern media flow entirely, which resolves this at the root. These will go out together in the next release.
Two notes in the meantime:
- This is the classic editor path. If you’re using the block (Gutenberg) editor on the document screen, the upload path is different — can you confirm which one you’re on?
- A few of the fields you listed (Media Categories, Replace Media, PDF Secured, PDF Downloads) aren’t part of WordPress or this plugin — they’re added by other media/PDF plugins you have active. They aren’t the cause, but worth knowing your stack adds those.
If you’d like to test the immediate fix before the release, you can apply the one changed file (
js/wp-document-revisions.js) from #541 on a staging site, and clear any caching/optimization plugin (e.g. WP Rocket) so an old minified copy of that script isn’t served. Let me know how it goes.Forum: Plugins
In reply to: [WP Document Revisions] Upload document error after update to 4.0.4@valicesupport Are you able to try https://github.com/wp-document-revisions/wp-document-revisions/pull/534? That should fix it. If not, I can cut a new release since this should be a non-breaking change.
Thanks @nwjames (spot on as always) and thanks @valicesupport for the feedback. Give 4.0.6 (https://github.com/wp-document-revisions/wp-document-revisions/releases/tag/v4.0.6) a try?
Forum: Plugins
In reply to: [WP Document Revisions] Upload document error after update to 4.0.4Thanks for the feedback. Try 4.0.5?
Thanks for the feedback. Try 4.0.5? https://github.com/wp-document-revisions/wp-document-revisions/releases/tag/v4.0.5
Forum: Plugins
In reply to: [WP Document Revisions] “Failed to load PDF document.”For the folks on this thread that had trouble with 3.3.0, are you able to please confirm if 3.3.1 resolves the issue for you?
Forum: Plugins
In reply to: [WP Document Revisions] Lastest update furbars linksFor the folks on this thread that had trouble with 3.3.0, are you able to please confirm if 3.3.1 resolves the issue for you?
Forum: Plugins
In reply to: [WP Document Revisions] “Failed to load PDF document.”@nwjames’s solution _should_ work (please do give it a try and report back!). I believe I have a theory, described in https://github.com/wp-document-revisions/wp-document-revisions/issues/254 to consolidate this thread with https://ww.wp.xz.cn/support/topic/lastest-update-furbars-links/#post-14539239.
Forum: Plugins
In reply to: [WP Document Revisions] Lastest update furbars links@nwjames fair point. I did some digging, and believe I have a theory, described in https://github.com/wp-document-revisions/wp-document-revisions/issues/254.
If either of those fixes can resolve the issue (and are as simple as they appear to implement), that could potentially quickly resolve the issue without other users running into the same frustration.
In the interim, please do give the filter fix a try and report back so we can confirm gzip is the culprit here.
- This reply was modified 5 years ago by Ben Balter.
Forum: Plugins
In reply to: [WP Document Revisions] Lastest update furbars linksNeil –
Thanks, as always, for jumping in here. Given that it seems there’s some complexity/edge cases here, do you think it would make sense to make gzip handling opt-in rather than opt-out?
gzip handling in PHP is admittedly new to me, but a brief search to try to educate myself suggests there may be some library dependencies and/or that gzip can be enabled via php.ini more reliably?
All for keeping it in the plugin, but I’m wondering if we can reduce some potential errors for users depending on their setup/configuration, we can both reduce frustration and the need to support different environments.
– Ben
Forum: Plugins
In reply to: [WP Document Revisions] Corrupted xlsx files, etc.Does the problem occur even when you deactivate all plugins and use the default theme?
Forum: Plugins
In reply to: [WP Document Revisions] Corrupted files (DocX, xlsx) on downloadAre you using the latest version of WordPress?
Are you using the latest version of the plugin?
Does the problem occur even when you deactivate all plugins and use the default theme?Forum: Plugins
In reply to: [WP Document Revisions] Media Library URL’s change after plugin updateI am wondering if https://github.com/benbalter/wp-document-revisions/pull/132 may not be the cause.
I believe https://github.com/benbalter/wp-document-revisions/pull/119 may fix this. Please try version 3.1.2.