Blog | Tech Blog | Secure Coding | Twitter | RSS Feed | Get Email Updates

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

CODE:
  1. $name    = $file;

4. Go to line 127, and replace $name by '$name'. The new line will read like

CODE:
  1. $wpdb->query ("INSERT INTO {$wpdb->prefix}drainhole_files (hole_id,file,updated_at,name) VALUES ($hole,'$file',NOW(),'$name')");

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

© Shantanu Goel | Fixing The WordPress Drain Hole Pugin v2.1.3

Custom Search
Liked this post? Get FREE Updates
Subscribe to RSS feed

Or
Enter Your E-mail ID below

Share and Enjoy:
  • Digg
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Reddit
  • Print this article!

Related posts