Title: WP 3.5, &gt; plugin gives errors
Last modified: August 20, 2016

---

# WP 3.5, > plugin gives errors

 *  [Mieike](https://wordpress.org/support/users/mieike/)
 * (@mieike)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/)
 * This plugin did exactly what I wanted, until I updated to WP3.5.
    The plugin 
   gives the following errors:
 *     ```
       Warning: Missing argument 2 for wpdb::prepare(), called in .../wp-content/plugins/no-future-posts/no-future-posts.php on line 74 and defined in .../wp-includes/wp-db.php on line 990
   
       Warning: Missing argument 2 for wpdb::prepare(), called in .../wp-content/plugins/no-future-posts/no-future-posts.php on line 81 and defined in .../wp-includes/wp-db.php on line 990
   
       Warning: Missing argument 2 for wpdb::prepare(), called in .../wp-content/plugins/no-future-posts/no-future-posts.php on line 74 and defined in .../wp-includes/wp-db.php on line 990
   
       Warning: Missing argument 2 for wpdb::prepare(), called in .../wp-content/plugins/no-future-posts/no-future-posts.php on line 81 and defined in .../wp-includes/wp-db.php on line 990
   
       Warning: Cannot modify header information - headers already sent by (output started at .../wp-includes/wp-db.php:990) in .../wp-includes/pluggable.php on line 876
       ```
   
 * Can you please fix it for WP3.5?
 * [http://wordpress.org/extend/plugins/no-future-posts/](http://wordpress.org/extend/plugins/no-future-posts/)

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

 *  [PhatBaby Diva](https://wordpress.org/support/users/phatbaby-diva/)
 * (@phatbaby-diva)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290824)
 * I wish I had seen this a few minutes ago. I recognize the bottom line that says‘
   pluggable.php on line 876’. Same exact error I had, same line. Every time I made
   a change to ANY plugin, I would get that error. I fixed it by removing a plugin,
   although I can’t remember the exact name of it. I think it was called ‘Custom
   Ads Sidebar’ or something along those lines. Delete that plugin, and all will
   go back to normal.
 * If you don’t have that particular plugin, then start re-naming plugins one at
   a time until you isolate it. Hope that helps you.
 *  [Lyndon Roeller](https://wordpress.org/support/users/lyndonr/)
 * (@lyndonr)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290828)
 * Same issue here with the No Future Post (version 1.3) plugin and WP 3.5
 *     ```
       Warning: Missing argument 2 for wpdb::prepare(), called in /home/wp-content/plugins/no-future-posts/no-future-posts.php on line 74 and defined in /home/wp-includes/wp-db.php on line 990
   
       Warning: Missing argument 2 for wpdb::prepare(), called in /home/wp-content/plugins/no-future-posts/no-future-posts.php on line 81 and defined in /home/wp-includes/wp-db.php on line 990
       ```
   
 * Seems like 3.5 isn’t too happy with the way the DB connection is being done.
 * Anyone have any ideas? The author’s website [http://www.tomsdimension.de/](http://www.tomsdimension.de/)
   seems to be down, so that might be a dead end
 * thank you!
 *  [Lyndon Roeller](https://wordpress.org/support/users/lyndonr/)
 * (@lyndonr)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290841)
 * I checked back on the author’s website and he released a patched version
 * [http://www.tomsdimension.de/wp-plugins/no-future-posts](http://www.tomsdimension.de/wp-plugins/no-future-posts)
 * I deactivated, deleted, then reinstalled. Now it’s fixed. Hopefully the author
   will update the version number and release the update so that it becomes available
   through WP.
 * Hope this helps.
 *  [Lyndon Roeller](https://wordpress.org/support/users/lyndonr/)
 * (@lyndonr)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290842)
 * there might be a simpler function.php code add to take care of this without the
   use of a plugin… [http://wordpress.org/support/topic/publish-scheduled-posts-in-35?replies=7](http://wordpress.org/support/topic/publish-scheduled-posts-in-35?replies=7)
 * testing now.
 *  Thread Starter [Mieike](https://wordpress.org/support/users/mieike/)
 * (@mieike)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290845)
 * Found this on the internet, [http://mysitemyway.com/support/topic/show-posts-with-future-date-in-archives](http://mysitemyway.com/support/topic/show-posts-with-future-date-in-archives):
 * Add this to your functions.php and remove the No Future Posts-plugin.
 *     ```
       function custom_archive_query($query) {
                 if ( $query->is_archive() ) { $query->set( 'post_status',
            array('future', 'publish') ); } return $query;
            }
            add_filter( 'pre_get_posts', 'custom_archive_query' );
       ```
   
 * It works!
 *  [alvaroz](https://wordpress.org/support/users/alvaroz/)
 * (@alvaroz)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290846)
 * THANK YOU. Solved, bye plugin! 🙂
 *  Thread Starter [Mieike](https://wordpress.org/support/users/mieike/)
 * (@mieike)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290847)
 * Mmmm, just discovered that this function only works in the site when you’re logged
   in. You can’t visit the future-post if you’re not logged in. Hope to find a solution
   soon…
 *  [Carlos.Arnavat](https://wordpress.org/support/users/carlosarnavat/)
 * (@carlosarnavat)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290868)
 * upgraded to WP 3.6 and am getting this error:
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/deanne/public_html/
   wp-content/plugins/no-future-posts/no-future-posts.php on line 74 and defined
   in /home/deanne/public_html/wp-includes/wp-db.php on line 992
 * please advise and thanks much 😉
 * carlos

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

The topic ‘WP 3.5, > plugin gives errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/no-future-posts_fcfafc.svg)
 * [No Future Posts](https://wordpress.org/plugins/no-future-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/no-future-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/no-future-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/no-future-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/no-future-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/no-future-posts/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [Carlos.Arnavat](https://wordpress.org/support/users/carlosarnavat/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/wp-35-plugin-gives-errors/#post-3290868)
 * Status: not resolved