Title: tm8228's Replies | WordPress.org

---

# tm8228

  [  ](https://wordpress.org/support/users/tm8228/)

 *   [Profile](https://wordpress.org/support/users/tm8228/)
 *   [Topics Started](https://wordpress.org/support/users/tm8228/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tm8228/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tm8228/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tm8228/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tm8228/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tm8228/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories] de_DE translation available](https://wordpress.org/support/topic/de_de-translation-available/)
 *  Thread Starter [tm8228](https://wordpress.org/support/users/tm8228/)
 * (@tm8228)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/de_de-translation-available/#post-4529284)
 * hi, sure, where to send them?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ads Manager] "Missing argument 2 for wpdb::prepare()" after wordpress update](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-after-wordpress-update/)
 *  [tm8228](https://wordpress.org/support/users/tm8228/)
 * (@tm8228)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-after-wordpress-update/#post-3294640)
 * … no, sorry, not in my case.
 * Search for
    $trash_num = $wpdb->get_var($wpdb->prepare(‘SELECT COUNT(*) FROM ‘.
   $pTable.’ WHERE trash = TRUE)); and $active_num = $wpdb->get_var($wpdb->prepare(‘
   SELECT COUNT(*) FROM ‘.$pTable.’ WHERE trash = FALSE));
 * Should be 3 lines or so above …
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Ads Manager] "Missing argument 2 for wpdb::prepare()" after wordpress update](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-after-wordpress-update/)
 *  [tm8228](https://wordpress.org/support/users/tm8228/)
 * (@tm8228)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-after-wordpress-update/#post-3294638)
 * Hi,
 * read this post
    [http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/](http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/)
 * and then change in
    /wordpress/wp-content/plugins/simple-ads-manager/list.admin.
   class.php
 * lines 118 and 119 to
 * $trash_num = $wpdb->get_var($wpdb->prepare(‘SELECT COUNT(*) FROM ‘.$pTable.’ 
   WHERE trash = %s’, TRUE));
    $active_num = $wpdb->get_var($wpdb->prepare(‘SELECT
   COUNT(*) FROM ‘.$pTable.’ WHERE trash = %s’, FALSE));

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