PDF link intermittently throws error

in Download Manager Free

Viewing 4 posts - 1 through 4 (of 4 total)
Jun 13, 2019 at 1:46 pm
#98227
Member
Ed Ammendola
OP

When clicking on various document links an error is thrown intermittently. See attached screen shot.

Warning: A non-numeric value encountered in ..\wp-content\plugins\download-manager\libs\class.DownloadStats.php on line 35

Jun 13, 2019 at 8:53 pm
#98249
Moderator
Shafayet
Staff

please give me your URL to check.

Jun 19, 2019 at 1:26 pm
#98687
Member
Ed Ammendola
OP

My apologies for not responding right away, but your emails were going to my junk folder.

I repaired the issue by changing line 35 of class.DownloadStats.php.

From this: $udl[“{$index}”] = isset($udl[“{$index}”])?$udl[“{$index}”]+1:1;

To this: $udl[“”.$index] = isset( $udl[“”.$index] ) && is_numeric( $udl[“”.$index] ) ? $udl[“”.$index]+1 : 1;

Hopefully this will be fixed in the next update.

Aug 20, 2019 at 2:20 pm
#111140
Member
Ed Ammendola
OP

To anyone reading this. A version update provided a fix for this, as well.

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

The topic "PDF link intermittently throws error" is closed to new replies.