NickDimmock
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: .docx files and functions.php2007, which is a tragedy but at least means it ought to be fine with docx files – which it is, outside of WordPress.
I don’t think there are any knock-on effects of the edit we’ve made, as both doc and docx files are now working as expected, but of course it’d be nice to nail the culprit.
Forum: Fixing WordPress
In reply to: .docx files and functions.phpJust saw the upload question – we’ve used the Flash uploader and the non-Flash one. I don’t think the uploading process is the issue because downloading the file to disk and then opening it works fine (the .doc suffix doesn’t get added). If we choose to open the file directly, the suffix gets added (this is opening in full Word, not embedding in the browser). If the problem was limited to a single browser I’d put it down to a browser bug, but it’s consistent across IE, FF, Chrome and Opera.
Thanks again for your suggestions.
Forum: Fixing WordPress
In reply to: .docx files and functions.phpYeah, it’s Apache on OSX, but as the server behaves as expected outside of WP, I don’t think that’s an issue.
I wonder now if Word is the problem – if it gets an application type of application/msword it may be deciding that docx is the wrong suffix, adding .doc and then attempting to convert the file – what I didn’t add in my original post was that the added suffix is causing Word to throw three error messages about not being able to convert the file before (successfully) showing it. Otherwise it wouldn’t really be an issue.
However, changing the Apache conf to deliver docx files as application/msword doesn’t replicate the problem outside of WP. So the only fix remains in the WP config, though it may not actually be a WP issue.
Forum: Fixing WordPress
In reply to: .docx files and functions.phpThanks for this. We have tried disabling our theme and plugins with no luck.
The reason I didn’t report it straight off as a bug is I’m not sure if our PC setup here at work is part of the problem, and editing functions.php is simply solving such a local issue that could be fixed some other way outside of WordPress. The application type certainly appears to be the culprit, in as much as editing it solves the problem. But I’ve no idea at this point what’s responsible for adding the .doc suffix to the end – server? Browser? System? Satan?
The problem happening at the end of the week really isn’t helping our efforts to solve it…