Subject: Downloads plugin: tsunami of messages

Posted on: 12/01/19 01:34pm
By: remy

After installing the latest downloads plugin a message appears in the error log:

Sat Jan 12 19:22:57 2019 - 46.119.122.127 - E_WARNING(2) - Use of undefined constant ext - assumed 'ext' (this will throw an Error in a future version of PHP) @ .../plugins/downloads/include/functions.php line 415


Corresponding code:

$len = strlen(ext);
$modurl = substr($url, 0, -$len) . $ext;


I do assume it's a typo.
Yes, I'm on php 7.2


Re: Downloads plugin: tsunami of messages

Posted on: 12/01/19 10:33pm
By: Laugh

Thanks for the bug report. Added the issue to GitHub: https://github.com/Geeklog-Plugins/downloads/issues/11

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=96943