Hi tshore,
This is worth spending a little bit of time getting fixed, as it'll affect you in numerous places in OJS. If the mime_content_type appears to work but doesn't function properly in your host's PHP configuration, OJS will use it -- but there are alternatives available that you can instruct OJS to use instead.
Look in classes/core/String.inc.php in the "mime_content_type" function (near line 212, depending on your version of OJS). There should be a line reading:
- Code: Select all
if (function_exists('mime_content_type')) {
To instruct OJS not to use PHP's mime_content_type function, change this to the following:
- Code: Select all
if (false && function_exists('mime_content_type')) {
This will instruct OJS to use one of two additional methods, which may have their own configuration or permission issues -- but we'll work on those once you've checked this to see if it works.
Regards,
Alec Smecher
Public Knowledge Project Team