Hi there,
I found a problem in the way modx is downloading files while using the package manager. And now I would like to know if this is a server-configuration issue.
On my server ’allow_url_fopen’ is set to false.
So, looking in the code I found that that modx is trying to download files using cURL.
(modTransportPackage.transferPackage line 258)
This is working but after the file is written to disk. MODx fails to open that file.
(xPDOZip.__construct line 66, ZipArchive.open returns 19 (ZIPARCHIVE::ER_NOZIP))
After some trying I found (using Live HTTPS headers and downloading some package in FF) that the MODx server answers to the download request with:
So I added this to the cURL config:
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
And now the file is readable as a zip archive.
So again, is this some configuration issue or something else?
Best regards!