1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Error Uploading Large Images

Discussion in 'Troubleshooting and Problems' started by lukeer31, Jul 9, 2014.

  1. lukeer31

    lukeer31 Member

    Hi there,

    I have been having this problem for quite a large time, but I have never been able to resolve it. Basically whenever I attempt to upload any large images onto my forums as an attachment I get the following error :
    Screenshot from 2014-07-08 23:54:36.png

    Initially I thought it may be due to the PHP upload limit, so I increased this using the following settings in my PHP FPM ini (I use nginx with PHP FPM)

    upload_max_filesize = 128M
    post_max_size = 128M
    max_file_uploads = 40
    However this made no difference, I have also increased the max memory for a PHP script to 128M

    memory_limit = 128M
    However, this made no difference, and I believe the memory limit should be enough to upload videos and pictures of up to 10M. My attachments configuration looks like below:

    Screenshot from 2014-07-08 23:59:28.png

    I have also tried using both GD and ImageMagick and I get the same error on both, and the error does not seem to log anything in the server error log

    So I'm not sure where to go from here, or where the problem could be, so any help would be much appreciated, if you need any more information please don't hesitate to ask

    Many thanks
  2. Tracy Perry

    Tracy Perry Well-Known Member

    There is also a setting in nginx that has some bearing on this sometimes (especially with phpmyadmin).
            client_max_body_size 75m;
  3. lukeer31

    lukeer31 Member

    Son of a gun, you got it!

    Thank you so much! All working now, this can be closed

    Thanks again
    Tracy Perry likes this.

Share This Page