MP3 file upload problem after upgrading OJS to 2.3.7

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.
shubhash
Posts: 43
Joined: Tue Feb 28, 2006 10:13 am
Contact:

MP3 file upload problem after upgrading OJS to 2.3.7

Postby shubhash » Tue May 08, 2012 1:06 pm

We were successfully uploading MP3 files in the galley area previously (using OJS version 2.3.4). But now after upgrading to version 2.3.7, all of a sudden mp3 upload stopped working. Basically the upload page hangs and timeouts and leads to a blank page. When checking the galley I find that the file has in fact been uploaded but it does not have any title for the file (makes sense as it crashed before even asking for the title) and the file type is listed as text/plain. So I am guessing it probably got into some kind of loop while detecting the file type.

It certainly is not the file size issue because larger PDF files upload almost instantly without any problem.
The error log message always indicates timeouts but with slight variation. The messages were as follows when I tried 4 times:

PHP Fatal error: Maximum execution time of 30 seconds exceeded in xyz/lib/pkp/classes/core/String.inc.php on line 552
PHP Fatal error: Maximum execution time of 30 seconds exceeded in xyz/lib/pkp/lib/adodb/adodb.inc.php on line 823
PHP Fatal error: Maximum execution time of 30 seconds exceeded in xyz/lib/pkp/classes/core/Registry.inc.php on line 38
PHP Fatal error: Maximum execution time of 30 seconds exceeded in xyz/lib/pkp/classes/db/DAO.inc.php on line 199

Any help would be greatly appreciated. Thanks.

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

Re: MP3 file upload problem after upgrading OJS to 2.3.7

Postby asmecher » Tue May 08, 2012 6:22 pm

Hi Shubhash,

Try turning off charset_normalization in config.inc.php. This should be safe to disable.

Regards,
Alec Smecher
Public Knowledge Project Team

shubhash
Posts: 43
Joined: Tue Feb 28, 2006 10:13 am
Contact:

Re: MP3 file upload problem after upgrading OJS to 2.3.7

Postby shubhash » Wed May 09, 2012 8:50 am

Hi Alec, turning off charset_normalization didn't make any difference.

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

Re: MP3 file upload problem after upgrading OJS to 2.3.7

Postby asmecher » Wed May 09, 2012 11:31 am

Hi shubhash,

Re-reading your original post -- this is sometimes necessary for me -- the problem is the text/plain identification; OJS is trying to parse and index text contents from the MP3, which will cause loads of problems. You need to get OJS to properly identify file types. Have a look at the String class's mime_content_type function -- it uses one of three methods to determine file types, depending on how your server is configured. See which one of those it's using and adjust its configuration accordingly. (There will typically be a MIME magic file to correct.)

Regards,
Alec Smecher
Public Knowledge Project Team

shubhash
Posts: 43
Joined: Tue Feb 28, 2006 10:13 am
Contact:

Re: MP3 file upload problem after upgrading OJS to 2.3.7

Postby shubhash » Mon May 14, 2012 1:37 pm

Hi Alec,
Thanks for the help. That finally did the trick.
I had to modify magic.mime to properly detect the mp3 files. It may have been a coincidence that the journal editor started producing slightly different kinds of mp3 files than previous ones around the same time I upgraded the OJS. Thus, the mp3 upload problem may have had nothing to do with the upgrade in the first place. Anyway, please feel free to modify the title of this thread if you think necessary.

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

Re: MP3 file upload problem after upgrading OJS to 2.3.7

Postby asmecher » Mon May 14, 2012 4:07 pm

Hi Shubhash,

Not a problem -- glad to hear it's working.

Regards,
Alec Smecher
Public Knowledge Project Team


Return to “OJS Technical Support”

Who is online

Users browsing this forum: Baidu [Spider], Yahoo [Bot] and 2 guests