Jump to content

Virtual product and attachment uploads not working over certain filesize


Recommended Posts

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 by psbaw (see edit history)
Link to comment
Share on other sites

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

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

×
×
  • Create New...