Jump to content

Theme file too big when uploading (OVH)


Recommended Posts

Hi there, 

I have a problem with uploading a theme (13MB), and I got error message "the file is too big".

First, I thought it was a problem with OVH, after contacting them, I got the following information (php config)

  • "memory_limit" => 512M
  • "file_max_upload_size => 64M
  • "allow_url_fopen => on
  • "register global => off
  • "safe_mode => off
  • "magicquotes => off

So, no problem with memory limit or file max upload size. They said it was probably some configuration in Prestashop. I installed other prestashop with other web hosters (with cPanel), I never have had to configure for this.

 

Could you please help ?

 

 

Thank you

Link to comment
Share on other sites

  • 10 months later...

I had a very similar problem and recently solved with these:

1. prestashop settings: administration>preferences , increase values at "upload quota" block
2. update php.ini file:
    2.1 how to find the location of php.ini file: https://www.ostraining.com/blog/coding/phpini-file/
    2.2 update these values in php.ini  (max_input_time 3200 | post_max_size 32M | upload_max_filesize 32M | max_execution_time 300) https://cloud.digitalocean.com/support/suggestions?article=how-to-change-your-php-settings-on-ubuntu-14-04&page=0&query=upload_max_filesize
3. restart php and nginx services: (in linux with these commands: "service nginx restart" "service php5-fpm restart")
4. increase client_max_body_size in nginx. ( http://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...