• tosog

    (@tosog)


    Hello!

    We have created a wordpress site for our club on a test server and now we have moved to the “real” hosting provider.

    On this new server, we are experiencing a weird problem when uploading “large” images to the media library. Large means: 3-4 mb or so. It works for smaller images, but not for these large ones ??
    The upload_max_filesize flag is set to 8M.

    When checking the contents of the wp-content/uploads/2017/02 directory, I can see the uploaded picture, and also all other resized versions of this file are there (like mypic-150×150.jpg up to mypic-1024×576.jpg.

    I have tried to increase the memory_limit of PHP, but this is limited by the provider by 100M. For testing, I decreased the limit on our testing-server too, but here it works also with 100M.

    Unfortunatelly I don’t have access to any server logs and also the WP_DEBUG/WP_DEBUG_LOG flag do not create any debug.log file ??

    I have also checked the file permissions, they should be OK.

    In the Developer Console from Chrome I can see an HTTP-500 Error in async-upload.php .. unfortunately the provider has a custom 500-errorpage and no more information is available there.

    Does anyone have an idea what could be the problem here? ??

    Thank you very much!

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • luckychingi

    (@luckychingi)

    https://php.net/manual/en/function.ini-set.php

    ini_set('post_max_size', '8M');
    ini_set('upload_max_filesize', '8M');
    Luis Sacristán

    (@displaynone)

    Hi

    Perhaps you have to modify your post upload size in your .htaccess file:

    php_value post_max_size 20M
    php_value upload_max_filesize 20M

    Hope it helps

    Thread Starter tosog

    (@tosog)

    hello, thank you both for your answer. Both values where set to 8M already ??
    Increasing them to 20M did not help either.

    As I’ve mentioned, the files have already been uploaded and resized. The error occurs somewhere after the upload/resizing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when uploading large images’ is closed to new replies.