Massive Error logs being generated by the plug in

in Download Manager Free

Viewing 8 posts - 1 through 8 (of 8 total)
Apr 2, 2013 at 4:48 pm
#5185
Member
Luvz
OP

I had a warning email about space only to see it was the error log of a very large size. almost 10 GB in just over night traffic.

[02-Apr-2013 00:50:07 UTC] PHP Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/XXXXXXXXX/public_html/wp-content/plugins/download-manager/process.php on line 249

thanks

Apr 2, 2013 at 4:53 pm
#5186
Participant
Graami

I just signed up to ask about the very same thing, our error log was 6GB.

We are currently running WordPress 3.5 and the DM plugin was working perfectly, but today on updating DM to 2.3.8 lots of errors are being generated: PHP Warning: fread(): Length parameter must be greater than 0 in /wp-content/plugins/download-manager/process.php on line 249.

Process ine 249 is: echo fread($file, $wpdm_chunk);

The only other change on the site today was updating the Jetpack plugin to 2.2.1.

We have had to disable the DM to get the site back up, but would love to get it working properly again as it was running just great. Any advice?

Apr 2, 2013 at 4:55 pm
#5187
Member
Luvz
OP

I am not running Jet pack – But this started right after upgrading to the latest release of the plug in . ALso WP 3.5.1

Apr 2, 2013 at 5:51 pm
#5188
Member
Luvz
OP

My solution till an official fix – works for me your mileage may vary

comment out lines from the process.php file

while (!feof($file)) {
if($wpdm_rest<=$wpdm_chunk) $wpdm_chunk = $wpdm_rest;
echo fread($file, $wpdm_chunk);
$wpdm_tsize += $wpdm_chunk;
$wpdm_rest = $fsize – $wpdm_tsize;
}

below the comment out lines add this statement

echo fread($file,$fsize);

Jonathon

Apr 2, 2013 at 7:05 pm
#5190
Keymaster
Shahjada
Staff

fixed and updated, please update your copy

Apr 2, 2013 at 7:15 pm
#5191
Member
Luvz
OP

Thanks for the fix. Works here.. Now I do have a question of why chuck the output? and just not let the all out at once.

thanks
Jonathon

Apr 2, 2013 at 8:05 pm
#5192
Participant
Graami

Hi Shaon, thank you so much for the swift fix, all working perfectly again now. Thanks for your feedback too Jonathon. 🙂

Apr 5, 2013 at 5:49 am
#5281
Keymaster
Shahjada
Staff

Thanks for the appreciation. If you like wpdm, Please rate it 5* at wp.org ( http://wordpress.org/support/view/plugin-reviews/download-manager ) . That will be a great support 🙂 .

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

The topic "Massive Error logs being generated by the plug in" is closed to new replies.