Upload file problems

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Upload file problems

Postby ramon » Mon Sep 17, 2007 12:03 pm

Hello all,

I couldn't find any posts related to this (to my knowledge) so here it goes:

I'm getting an mconvert() error/warning of invalid type when uploading any type of file to the system. Even though it shows the error, the file is uploaded correctly.

Here's the error message when uploading the CSS file on step 5 of journal config:

Code: Select all

Warning: mime_magic: invalid type 0 in mconvert(). in /var/www/seer/0709/lab20/ojs2/classes/core/String.inc.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /var/www/seer/0709/lab20/ojs2/classes/core/String.inc.php:216) in /var/www/seer/0709/lab20/ojs2/classes/template/TemplateManager.inc.php on line 187

Any related problems? How to fix this? Setting the error_reporting will only hide the issue...

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Upload file problems

Postby asmecher » Mon Sep 17, 2007 12:57 pm

Hi Ramón,

I suspect your magic.mime file is incompatible with the mime_magic library built into PHP. I'd suggest getting a version that's compatible and making sure PHP's mime_content_type function is configured to find it in the right location. Some PHP packages ship with a version of magic.mime.

Alec Smecher
Public Knowledge Project Team

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests