Title: [Plugin: Dynamic Widgets] Missing Argument Warning
Last modified: August 20, 2016

---

# [Plugin: Dynamic Widgets] Missing Argument Warning

 *  [jrr1234](https://wordpress.org/support/users/jrr1234/)
 * (@jrr1234)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-missing-argument-warning/)
 * Hello,
 * I installed WordPress 3.5-RC4 on my test site and noticed the following missing
   argument error:
 * Missing argument 2 for wpdb::prepare(), \wp-content\plugins\dynamic-widgets\classes\
   dynwid_class.php on line 654 and \wp-includes\wp-db.php on line 990.
 * I just want to give you a heads-up before 3.5 is officially launched.
 * Thanks.
 * [http://wordpress.org/extend/plugins/dynamic-widgets/](http://wordpress.org/extend/plugins/dynamic-widgets/)

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

 *  [Brayne](https://wordpress.org/support/users/brayne/)
 * (@brayne)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-missing-argument-warning/#post-3248558)
 * I wound this too. I updated line 990 in wp-db.php.
 * `function prepare( $query, $args) {`
 * Becomes
 * `function prepare( $query, $args = "" ) {`
 *  [triptol](https://wordpress.org/support/users/triptol/)
 * (@triptol)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-missing-argument-warning/#post-3248572)
 * [@brayne](https://wordpress.org/support/users/brayne/), although I believe your
   solution will work, I think it is better to change the plugin and don’t mess 
   with the WP internal files.
 * Changing line 654 in wp-content/plugins/dynamic-widgets/classes/dynwid_class.
   php from:
    `$count = $this->wpdb->get_var($this->wpdb->prepare($query));`
 * to
    `$count = $this->wpdb->get_var($this->wpdb->prepare($query,""));`
 * also does the trick, but in a nicer way.
 *  [jimkimmons@gmail.com](https://wordpress.org/support/users/jimkimmonsgmailcom/)
 * (@jimkimmonsgmailcom)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-missing-argument-warning/#post-3248589)
 * found that line in two places, changed one then both, no help.
 *  [triptol](https://wordpress.org/support/users/triptol/)
 * (@triptol)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-missing-argument-warning/#post-3248591)
 * I updated the plugin today to 1.5.4 seems that the issue is fixed in that version.

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

The topic ‘[Plugin: Dynamic Widgets] Missing Argument Warning’ is closed to new 
replies.

 * 4 replies
 * 4 participants
 * Last reply from: [triptol](https://wordpress.org/support/users/triptol/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-missing-argument-warning/#post-3248591)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
