Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve tried to recreate the LAMP pc B reading this article.

    The section ‘Moduli aggiuntivi’ invite to install many PHP modules (if necessary).
    I don’t install any module, and now WordPress works perfectly.

    I’ve two freshen LAMP installation:

    pc A: Debian 7, PHP 5.4.41, WordPress 4.2.2

    pc B: Debian 8, PHP 5.6.9, WordPress 4.2.2

    When I try to upload an image in WordPress via Media->AddNew (media-new.php):

    on pc A OK

    on pc B I’ve got the error ‘The uploaded file was only partially uploaded’

    I put an ‘error_log’ in wp-admin/media-new.php at line 27 and I verify that the $_POST variable is empty:

    error_log(’empty($_POST)=’ . var_export(empty($_POST),true));
    if ( $_POST ) {
    $location = ‘upload.php’;
    if ( isset($_POST[‘html-upload’]) && !empty($_FILES) ) {

    Is a PHP problem?

    EDIT

    I’ve noticed that the problem is the size of file to upload.
    If the file size is less then 8k then it’s ok in pc A and pc B.
    If the file size is over 8k then in pc A is ok but not in pc B.
    After reading many articles, I’ve modified the php.ini file in /etc/php5/apache2filter folder in pc B:

    upload_max_filesize = 20M
    post_max_size = 80M
    memory_limit = 128M

    Restart apache service.
    But the problem remains.

    I’ve also modified the apache2.conf in /etc/apache2 adding:

    LimitRequestFieldSize 5242880
    LimitRequestLine 5242880
    LimitXMLRequestBody 0

    But the problem still remain.

    Where is the problem?

    I’ve two freshen LAMP installation:
    pc A: Debian 7, PHP 5.4.41, WordPress 4.2.2
    pc B: Debian 8, PHP 5.6.9, WordPress 4.2.2

    When I try to upload an image in WordPress via Media->AddNew (media-new.php):
    on pc A OK
    on pc B I’ve got the error ‘The uploaded file was only partially uploaded’

    I put an ‘error_log’ in wp-admin/media-new.php at line 27 and I verify that the $_POST variable is empty:

    error_log('empty($_POST)=' . var_export(empty($_POST),true));
    if ( $_POST ) {
        $location = 'upload.php';
        if ( isset($_POST['html-upload']) && !empty($_FILES) ) {

    Is a PHP problem?

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