<div dir="ltr"><div dir="ltr">>> This may happen if you have PHP files with a closing "?>" marker at the end, and some text or white space after it.<br><br>This was it !</div><div dir="ltr"><br></div><div>Thank you so much Petko !</div><div><br></div><div>Christophe</div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 27 Feb 2023 at 10:46, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27/02/2023 10:26, Christophe David wrote:<br>
> I have been using PmWiki  since 2005 and still love it.<br>
> <br>
> For a few weeks now (I cannot correlate this to anything), the <br>
> downloads of binary files using action=download result in corrupted <br>
> files (for example .zip files cannot be read).<br>
> <br>
> Same issue using Chrome or Firefox, on Linux or Windows.<br>
> <br>
> Downloading files directly from the server (outside PmWiki directories) <br>
> does not corrupt the files.<br>
<br>
There might be some warning or error message before the file content. To <br>
see the message, try downloading a plain text file and look at it. On <br>
Linux, you can peek into the ZIP file with `less -L file.zip`, agree to <br>
view the binary file and look at the first few characters or lines, <br>
before the string "PK^C".<br>
<br>
Alternatively, some recipe or local configuration may output something <br>
before the file. This may happen if you have PHP files with a closing <br>
"?>" marker at the end, and some text or white space after it. It is <br>
recommended to remove these closing markers from your local and cookbook <br>
files.<br>
<br>
See PmWiki:Troubleshooting on how to track the source for the <br>
errors/warnings.<br>
<br>
Petko<br>
</blockquote></div></div>