If you use the awesome download manager plugin “Drain Hole” for your WordPress blog (A short review here), and upgraded to the latest version 2.1.3, you must have noticed that it doesn’t scan and add new files to the download repositories now. Well, this is a quick and short post to tell you how to fix it in less than a minute.

Steps:

  1. Go to your wordpress folder and then navigate to wp-content/plugins/drain-hole/models.

  2. Open file.php

  3. Go to line 106, and replace ‘NULL’ by $file. The new line will read like

  1. Go to line 127, and replace $name by ‘$name’. The new line will read like

And that’s it. Let me know if this helped you out.