psbaw Posted July 30, 2015 Share Posted July 30, 2015 (edited) I'm on PS 1.5.31 and I have a virtual product that I'm trying to upload into BO and it works fine if the file is 20Mb or less. But when I upload a file over 20Mb, the page just shows the "Loading" animation and continues to do that for hours. The file is never uploaded. The Virtual Product page says, "Your server's maximum file-upload size is: 64 MB" so I should be able to upload a 21Mb file. I then tried to upload something to the Catalog > Attachments section and again, files under 20Mb are fine but files over 20Mb will give me an "Internal Server Error". I've turned on debug but it doesn't show any errors for this. Here is what my php.info shows: Directive Local Master max_execution_time 120 1000 memory_limit 256M 2048M post_max_size 64M 101M max_input_time 60 -1 upload_max_filesize 64M 100M I'm not sure why the local value is different since the master value is what I have set in php.ini. I also don't see why PS would have problems uploading a 21M file. All I can think of is the max_input_time could be changed but that's just a guess. Is there anywhere else in PS where i should be looking to see where these values are getting set? I've checked .htaccess and it doesn't have any php directives set in it. Any help would be appreciated. Thanks. Edited July 30, 2015 by psbaw (see edit history) Link to comment Share on other sites More sharing options...
gabdara Posted July 31, 2015 Share Posted July 31, 2015 Have you checked under BO > Administration > Preferences > Upload Quota ? Link to comment Share on other sites More sharing options...
psbaw Posted July 31, 2015 Author Share Posted July 31, 2015 Yes I've got it set to the max of 64Mb and still no luck uploading a 21Mb file. Not sure where else to check at this point. Link to comment Share on other sites More sharing options...
gabdara Posted August 2, 2015 Share Posted August 2, 2015 Are you on a proxy server? I had a similar problem with a nginx proxy, on the VPS I've changed all the necessary configuration to allow upload of bigger filesize, but on the host machine it remained limited and because of that I couldn't upload a file bigger than the host limitation. Link to comment Share on other sites More sharing options...
psbaw Posted August 3, 2015 Author Share Posted August 3, 2015 You're right, it looks like a host limitation. I took a look at the server logs and saw this error: "mod_fcgid: HTTP request length 20972797 (so far) exceeds MaxRequestLen (20971520)" There's that 20M limit. I contacted my host to have them change the limit since it's an Apache config but they haven't done it yet. I'm not 100% sure this is the problem but it sure seems like it. I'll see when they update the limit. Thanks, gabdara for your help. In case this is helpful for anyone else, the reason the local php values were different from the master values was because there was a user.ini file in the prestashop directory that I had missed. Updated the values in the user.ini and now the local and master values are the same. Link to comment Share on other sites More sharing options...
psbaw Posted August 4, 2015 Author Share Posted August 4, 2015 Problem solved. My host increased the MaxRequestLen on the server and file uploads over 20M are working now. Link to comment Share on other sites More sharing options...
Recommended Posts