Title: Database Errors
Last modified: February 24, 2021

---

# Database Errors

 *  Resolved [Venutius](https://wordpress.org/support/users/venutius/)
 * (@venutius)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/database-errors-70/)
 * Hi there,
 * There’s some errors in your code:
 * in class-links-list-table.php line 51 there’s
 *     ```
           $filename = $wpdb->get_var( 
             "SELECT filename FROM wp_dispatcher_uploads WHERE id = {$item['upload_id']}"
            );
       ```
   
 * This should be something like this:
 *     ```
           $filename = $wpdb->get_var( 
             "SELECT filename FROM {$wpdb->prefix}dispatcher_uploads WHERE id = {$item['upload_id']}"
            );
       ```
   
 * also line 110 of class-wp-dispatcher-downloader.php is this:
 *     ```
             else {
               $upload = $wpdb->get_row("SELECT * FROM wp_dispatcher_uploads WHERE id = {$link->upload_id}");
               $count = $upload->count + 1;
               $wpdb->update( 
                 'wp_dispatcher_uploads', 
                 array( 'count' => $count ), 
       ```
   
 * Shouldn’t that be more like:
 *     ```
             else {
               $upload = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}dispatcher_uploads WHERE id = {$link->upload_id}");
               $count = $upload->count + 1;
               $wpdb->update( 
                 $wpdb->prefix . 'dispatcher_uploads', 
                 array( 'count' => $count ), 
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Venutius](https://wordpress.org/support/users/venutius/)
 * (@venutius)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/database-errors-70/#post-14097904)
 * Yep just tried it, all working now
 *  Plugin Author [eko](https://wordpress.org/support/users/ekndev/)
 * (@ekndev)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/database-errors-70/#post-14304392)
 * Hey there,
    thank you for the fix 🙂 I have pushed a new version 1.2 covering
   your code changes.
 *  [timheijden](https://wordpress.org/support/users/timheijden/)
 * (@timheijden)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/database-errors-70/#post-14314114)
 * Hi, my website updated to version 1.2 automatically, and was the WP-dispatcher
   URL’s were no longer working. (They would download an empty wp-dispatcher file)
 * Looking at the update here, it could be that my uploaded files were longer in
   the table being queried, so I tried uploading a new file as a test. This also
   didn’t work unfortunately.
 * I’m very inexperienced in WordPress, but was able to manually revert the change(
   going back to 1.1) and that seems to work for now. Do you have any idea why this
   could be?
 *  Plugin Author [eko](https://wordpress.org/support/users/ekndev/)
 * (@ekndev)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/database-errors-70/#post-14314608)
 * Hey,
    thank you for the report. There was a terrible mistake in the last update.
   Now it has been corrected. Sorry for any problems caused!
 *  [timheijden](https://wordpress.org/support/users/timheijden/)
 * (@timheijden)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/database-errors-70/#post-14319361)
 * Hi Ekin, just updated again and wanted to confirm your update works for me. Thanks
   for the quick response!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Database Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-dispatcher_96224e.svg)
 * [WP Dispatcher](https://wordpress.org/plugins/wp-dispatcher/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dispatcher/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dispatcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dispatcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dispatcher/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [timheijden](https://wordpress.org/support/users/timheijden/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/database-errors-70/#post-14319361)
 * Status: resolved