Massive Error logs being generated by the plug in

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

Luvz
Member

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

#5186

Graami
Participant

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?

#5187

Luvz
Member

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

#5188

Luvz
Member

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

#5190

Shahjada
Keymaster

fixed and updated, please update your copy

#5191

Luvz
Member

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

#5192

Graami
Participant

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

#5281

Shahjada
Keymaster

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.