- This topic has 7 replies, 3 voices, and was last updated 12 years, 11 months ago by
Shahjada.
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
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?
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
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
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
Hi Shaon, thank you so much for the swift fix, all working perfectly again now. Thanks for your feedback too Jonathon. 🙂
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 🙂 .
The topic "Massive Error logs being generated by the plug in" is closed to new replies.