- This topic has 1 reply, 2 voices, and was last updated 5 days, 20 hours ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Download Monitor & Manager Plugin
Simple Download Monitor & Manager for WordPress
· ·
WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › Download Method 1 = Corrupt Files
I am using this plugin to deliver some simple free zip downloads for users and have been using it without issue since December last year.
I was running my site on PHP 7.4 and updated to 8.1 today.
While everything on my site appears fine, I have discovered all downloads via this plugin are downloading “corrupt” and unable to be extracted. The downloaded zip file appears to be the correct size, but it is unable to be opened. Download the same file via FTP is fine.
In the options I have the download method set to the default “Method 1” which is causing this problem. If I switch to “Method 4: ReadMe-1M-SessionWriteClose” it seems to download fine but I never see it add to the download queue in Chrome, just appear on my desktop when downloaded but it does open.
Any idea what is going on, why all of a sudden the default methos is causing files to download corrupt?
If you are using the PHP streaming option, then you need to try the various methods offered in the settings and see which one works for your server environment. If one of those methods work on your site, then the recommendation is to use that one. The following explanation should be helpful.
When using PHP streaming/dispatching for downloads, there is no universal method that works seamlessly across all server environments. The ability for PHP to handle file streaming depends on the server’s configuration, including factors like PHP execution mode, timeout settings, and security restrictions. If PHP streaming isn’t working on your setup, the best approach is to contact your hosting provider and request adjustments to the server environment to allow PHP-based file streaming to function correctly.
Start managing and tracking your file downloads with the simple download monitor plugin. Download Now