Large downloads ending early at 500MB

Viewing 24 posts - 1 through 24 (of 24 total)
#134653

Morgan McBride
Participant

Hello,

We’re running into an issue with a 900MB file on our WPDM installation. When using the WPDM link to download the file, the file stops at 500MB and appears to have finished, even though the file is actually 900MB.

We’ve tried adjusting the Download Speed (currently 20480), Resumable Downloads, and Output Buffering settings but have not been able to resolve the issue. When disabling both the Output Buffering and Resumable Downloads options, the WPDM download link gives us an error:

[18-Aug-2020 19:41:26 UTC] PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate 944402432 bytes) in /xxxx/xxxx/public_html/wp-content/plugins/download-manager/libs/class.FileSystem.php on line 125

We have adjusted the server settings to increase the memory limit up to 6GB using both PHP INI settings and wp-config.php directives, but continue to receive the memory allocation error. We were also able to download the file successfully in the browser when placing it in another directory and accessing that URL directly. This leads us to believe there might be something specific to the WPDM plugin that is causing the issue.

Please let us know if there is anything we can do to resolve this issue.

Thanks

#134934

Nayeem Riddhi
Moderator
#135021

Morgan McBride
Participant

Thanks for following up, but the issue I’m having is related to downloads, not uploads. We’ve successfully uploaded a 900MB file to WP Download Manager, but when we try and download the file through the WPDM download link, it stops when the file hits 500MB. The download doesn’t fail, but rather once the file hits 500MB downloaded, the total file size listed in the download bar jumps from 900MB to 500MB and the download thinks it has completed, even though ~50% of the file is missing.

Is there any other information you can provide?

#137076

Morgan McBride
Participant

I’m still running into this issue – can you provide any help?

#137257

Nayeem Riddhi
Moderator

Sorry for delay reply,

I think this is causing for PHP memory setting

Fixing the Error there are a couple of ways on how to go about resolving this error. These include:

1.Editing the wp-config.php file
2.Editing the php.ini file
3.Editing the .htaccess file

1.Editing the wp-config.php file

Here you will need to edit thewp-config.php file.
define( 'WP_MEMORY_LIMIT', '256M' );

2.Editing the php.ini file

On a live install, the file can be accessed within the root of your install, that is within the /public_html/ folder. Note that the file is not installed by WordPress but in most cases set up by your host. If you are using CPanel as your control panel, for example, make sure the checkbox for “Show Hidden Files” is checked and then click Go. You may check into this article on how to go about editing the file. Before editing the file, kindly preserve a backup to it by downloading it to your computer.
Once this is done, open the file, add or edit the following line:

memory_limit 512M

3.Editing the .htaccess file

The .htaccess file is a file located within the root of your WordPress files.

You will need to add or edit the following code to the bottom of the file:

php_value memory_limit 256M

With this done, you can then save your changes and check if the error is resolved.

Thanks.

#138591

Naren k
Participant

I am also facing the same issue even after doing after editing the things you said.

#138712

Nayeem Riddhi
Moderator

have you followed this instruction also, https://www.wpdownloadmanager.com/how-to-increase-the-maximum-file-upload-size-in-wordpress-download-manager/, let me know if it helps or not

thanks

#140675

Naren k
Participant

no it doesnt help. after 1 GB the download cuts in midway. if anyone found a solution it will be very helpful.
Thanks

#141940

Ahmad Reza Jafari
Participant

I have the same problem. My files is originally 600 MB and lots of our clients are angry that it is corrupted. The problem is that when they download it via WP Download Manager plugin, if browser starts the download, it will stop at exactly 500 MB. But if they start the download with IDM, it downloads the file intact. I tested it many times and it seems that WPDM only allows each connection to download up to 500 MB and since IDM breaks the download in 8 connection, it’s fine.
I played with every parameter in WPDM settings and nothing solved this problem.
And I’m sure that there is no problem with WordPress or server because I can download the file with browser from direct link.

I would be so thankful if you could give us a working solution.

#141948

Nayeem Riddhi
Moderator

Hi Ahmad Reza Jafari,

Can you please adjust Download Speed from the basic settins, you can also enable/disbale for checking Resumable Downloads and Output Buffering

thanks

#142133

Naren k
Participant

Still facing the same issue only on your plugin.

#142307

Ahmad Reza Jafari
Participant

I tried all three of these settings but non of them solved the issue.

#142369

Nayeem Riddhi
Moderator

Hello,

Sorry for the inconvenience, have you checked the PHP memory setting too, let me know

thanks

#143286

Ahmad Reza Jafari
Participant

Hello again,
I set PHP memory to 1000M but it made no difference. Still stops at 500M.

#144038

Naren k
Participant

Hai any update or luck on this issue after 500 MB it just cancels in midway it is very frustrating

#144047

Nayeem Riddhi
Moderator

Hi @Naren,

Are you using free version too, let me know

thanks

#144049

Naren k
Participant

yes i am using free version is there limit on free version?

#144069

Nayeem Riddhi
Moderator

This can be an issue with server problem too, can you please contact your host provider, please let me know if you get any resolution

thanks

#144082

Naren k
Participant

no its not a server issue have checked without plugin and it works good. no issues in downloading even a 2 GB file.

#144087

Nayeem Riddhi
Moderator

please check, Resumable Downloads and Output Buffering option from basic settings of WPDM, by enabling or disabling those option you may get the resolution

thanks

#144088

Naren k
Participant

Tried that it doesn’t work either.

#144089

Nayeem Riddhi
Moderator

Is there showing any network error after ending the download session?

#144090

Naren k
Participant

no it doesnt shows anything it just says cancelled without even reducing the download speed.

#144091

Nayeem Riddhi
Moderator

please create a new topic and please, give your temporary wp-admin login details in a private reply for checking the issue.

Thanks

Viewing 24 posts - 1 through 24 (of 24 total)

The topic ‘Large downloads ending early at 500MB’ is closed to new replies.