Workaround for attachment opening issues
-
There’a number of posts here (including mine) about problems opening attachments in AOL.
Until the author fixes this (a deprecated function is being called) I’ve identified this workaround:
This is a simple workaround, but you’re doing this at your own risk. Make a backup backup copy of the file being edited before you make any changes.
1. Locate the plugin file …(yourwebsite)/plugins/apply-online/admin/class-applyonline-admin.php
2. Find the line that contains this text:
$mime_type = mime_content_type($path);
This will be near line 540-550 and in the function “output_attachment()”3. Add two slashes in front of it to comment it out:
// $mime_type = mime_content_type($path);4. Add a new line after it:
$mime_type = ‘application/octet-stream’;Note that this is a workaround, and forces the mime-type to the generic “application/octet-stream” which will probably be fine for most common attachments you’ll encounter here. Some attachment types may not open the same as they did with the working mime_content_type in some browsers, but most should open.
- The topic ‘Workaround for attachment opening issues’ is closed to new replies.