Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter hpeldin

    (@hpeldin)

    Bonjour,
    Je me répond a moi meme …
    j’ai trouvé un palliatif

    j’ai modifié le fichier class-comarquage.php

    a partir de la ligne 140 et commenter les ligne qui pose soucis.

    $fo=$file_array[ ‘tmp_name’ ];
    $zip = new ZipArchive;
    if ($zip->open($fo) === TRUE) {
    $zip->extractTo($destination_path);
    $zip->close();
    echo ‘ok $destination_path’;
    unlink( $file_array[ ‘tmp_name’ ] ); // Unlink

    } else {
    echo ‘échec $destination_path’;
    }

    /* partie qui marche pas
    $unzipfile = unzip_file( $file_array[ ‘tmp_name’ ],
    $destination_path);

    if ( is_wp_error($unzipfile) ) { // Test if unzip is a
    success
    $comarquage_error->add(‘Comarquage’, ‘Impossible
    d\’extraire le fichier ZIP contenant les don
    //unlink( $file_array[ ‘tmp_name’ ] ); // Unlink
    return false;
    }
    */

    Et la ca fonctionne.

    A voir a prochaine mise a jour …

    HPE.

    • This reply was modified 7 years, 9 months ago by hpeldin.
Viewing 1 replies (of 1 total)