Trying to download Delphinus Websetup clicking on "Download File DelphinusWebSetup.zip - 1.21 MB" from https://memnarch.bplaced.net/blog/delphinus/ results in a broken file. It seems that PHP errors are added at the beginning of ZIP file contents. The filename proposed is download.htm, and it's not a valid ZIP.
The culprit seems to be the first PHP error from file_exists:
... open_basedir restriction in effect. File(/blog/wp-content/uploads/downloads/2016/10/DelphinusWebSetup.zip) is not within the allowed path(s): (/users/memnarch/:/users/_temp/memnarch)
Tested from both Google Chrome and Firefox, with the same results.
These are the full PHP errors at the beginning of the file, and I'm attaching the faulty downloaded files:
<br />
<b>Warning</b>: file_exists() [<a href='http://de.php.net/function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/blog/wp-content/uploads/downloads/2016/10/DelphinusWebSetup.zip) is not within the allowed path(s): (/users/memnarch/:/users/_temp/memnarch) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /users/memnarch/www/blog/wp-content/plugins/download-monitor/src/FileManager.php:76) in <b>/users/memnarch/www/blog/wp-content/plugins/download-monitor/src/DownloadHandler.php</b> on line <b>789</b><br />
Rob Bauer
April 14, 2023 at 5:15 pm
If I click the button “Download File DelphinusWebSetup.zip – 1.21 MB” I get the file “download.htm” do download and not a .zip file.
Trying to download Delphinus Websetup clicking on "Download File DelphinusWebSetup.zip - 1.21 MB" from https://memnarch.bplaced.net/blog/delphinus/ results in a broken file. It seems that PHP errors are added at the beginning of ZIP file contents. The filename proposed is
download.htm
, and it's not a valid ZIP.The culprit seems to be the first PHP error from
file_exists
:Looks like you need to fix PHP configuration of
open_basedir
, https://www.php.net/manual/en/ini.core.php#ini.open-basedir .Tested from both Google Chrome and Firefox, with the same results.
These are the full PHP errors at the beginning of the file, and I'm attaching the faulty downloaded files:
incorrect_downloads.zip
Looking at https://memnarch.bplaced.net/blog/delphinus/ comments, looks like the comment 2 weeks ago echoes the same issue: