OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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

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
asmecher
 
Posts: 8337
Joined: Wed Aug 10, 2005 12:56 pm

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

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
asmecher
 
Posts: 8337
Joined: Wed Aug 10, 2005 12:56 pm

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

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
asmecher
 
Posts: 8337
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests