We are having an issue uploading some larger files to OJS. When uploading, the progress bar goes all way and then hangs, nothing ever happens after that. No error messages. This happens to files that seem to be over 10MB. A 13MB Word document did not upload, but zipped at 9MB it uploaded no issue. We also have authors trying to submit 20MB files and are unable to.
The change disables the file indexing when the file is first uploaded. I’ve never really understood why files are indexed when they are uploaded, and not just when an article is published or a version changed, but with large sites with lots of files, the search index can grow to millions of records and there can be lag when files are uploaded. You can always just kick off a manual reindex using the command line tool
I’m having nearly the same problem here. Except we cannot upload any files over 1.5M. We are Running the same version of OJS.
My settings in php.ini are:
I have commented out the file mentioned in this thread: (see below) And tried uploads again with same results. I also have checked my error.log file are there are no corresponding errors to our upload issue. We do get the error HTTP error, but we know it’s related to file size because if we upload under 1MB, they upload fine without issue. We are open to any suggestions!
Can you confirm that your php.ini settings are in fact what you think they are? Apache may be using a different .ini file, or perhaps the settings are being overridden elsewhere. You can use the “more info” area in the OJS Administration area to know for sure.
Great suggestion @jnugent ! I actually wasn’t 100% sure which php.ini file was being used so I made the changes to both (/etc/php/7.4/apache2/php.ini and /etc/php/7.4/cli/php.ini) After reviewing your suggestion, the correct path is in…/apache2/php.ini — Which does have the upload_max_filesize set to 12M. Just for kicks, I increased both to 50M, (upload_max_filesize and post_max_size) but still get error that
I thought it odd mentioning nginx in that error also as nginx is definitely not installed on this server. It does run Apache only. I’m unfamiliar with nginx as I’ve always only run Apache on my servers.
As a clarification: That 413 error displays when attempting to upload an ARTICLE. I get the http error when attempting to upload a GALLY.
The line of code mentioned in the article you sent ```
Unfortunately, I get the same results. It just seems like it should be an easy fix. Darn it all.
I do need to update to the latest version of ojs..... so maybe ??? Strangely enough, we were able to upload larger files when we were on an older version of OJS
Thank you muchly.
I finally was able to find a log error on the server:
[Thu Nov 18 11:33:52.540151 2021] [fcgid:warn] [pid 19635:tid 139931732940544] (28)No space left on device: [client masked:55930] mod_fcgid: can’t write tmp file for stdin request, referer: Login | Pathogens and Immunity
Not sure why it says no space left on device. It gives the client IP (my machine) in the log file. My machine and the server has plenty of room on it. Any ideas?