Download selected emails issues an empty zip file

Issue #57 resolved
Former user created an issue

Hi I'm using the vmware image provided on your download page, and everything is working fine it seems, except the download selected emails link. It presents a blank zip file (literally, 0 bytes in size).

I performed an apt-get upgrade (and it updated mysql client and server is all I think), but the issue remains.

I can see libzip1 is installed as well.

Comments (2)

  1. Janos SUTO repo owner

    please edit /var/www/piler.aaa.fu/model/message/restore.php and replace the ~12th line ($filename = DIR_TMP ....) with the following line:

    $filename = DIR_BASE . "tmp/" . $randomid;

    or if you want to spare your fingers :-), then download the master branch, and replace model/message/restore.php

  2. Sebastian Henze

    [solved]

    I have the same issue with the latest version. The restore.php has already the correct line and libzip2 is installed.

    [Wed Jul 15 10:25:31.761462 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  fopen(/var/www/piler/tmp/17181): failed to open stream: Permission denied in /var/www/piler/model/message/zip.php on line 21, referer: https://piler.domain.tld:25443/search.php
    [Wed Jul 15 10:25:31.767909 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  fopen(/var/www/piler/tmp/17182): failed to open stream: Permission denied in /var/www/piler/model/message/zip.php on line 21, referer: https://piler.domain.tld:25443/search.php
    [Wed Jul 15 10:25:31.767950 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  unlink(/var/www/piler/tmp/17181): No such file or directory in /var/www/piler/model/message/zip.php on line 34, referer: https://piler.domain.tld:25443/search.php
    [Wed Jul 15 10:25:31.767962 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  unlink(/var/www/piler/tmp/17182): No such file or directory in /var/www/piler/model/message/zip.php on line 34, referer: https://piler.domain.tld:25443/search.php
    [Wed Jul 15 10:25:31.767989 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  filesize(): stat failed for /var/www/piler/tmp/M7MTh7NaqfBJmnIt in /var/www/piler/model/message/zip.php on line 43, referer: https://piler.domain.tld:25443/search.php
    [Wed Jul 15 10:25:31.768021 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  readfile(/var/www/piler/tmp/M7MTh7NaqfBJmnIt): failed to open stream: No such file or directory in /var/www/piler/model/message/zip.php on line 47, referer: https://piler.domain.tld:25443/search.php
    [Wed Jul 15 10:25:31.768032 2015] [:error] [pid 23855] [client 123.123.123.123:50413] PHP Warning:  unlink(/var/www/piler/tmp/M7MTh7NaqfBJmnIt): No such file or directory in /var/www/piler/model/message/zip.php on line 49, referer: https://piler.domain.tld:25443/search.php
    

    Solved. There was a permission problem in "/var/www/piler/tmp".

  3. Log in to comment