Title: Error &#8211; wpdb::prepare()
Last modified: August 21, 2016

---

# Error – wpdb::prepare()

 *  [_KDC-Labs](https://wordpress.org/support/users/kdclabs/)
 * (@kdclabs)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-wpdbprepare/)
 * Following errors are occurring ONLY when creating a NEW POST
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxx/public_html/
   wp-content/plugins/no-future-posts/no-future-posts.php on line 74 and defined
   in /home/xxx/public_html/wp-includes/wp-db.php on line 992
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxx/public_html/
   wp-content/plugins/no-future-posts/no-future-posts.php on line 81 and defined
   in /home/xxx/public_html/wp-includes/wp-db.php on line 992
 * [http://wordpress.org/plugins/no-future-posts/](http://wordpress.org/plugins/no-future-posts/)

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

 *  [Luke Seall](https://wordpress.org/support/users/lukelukeluke/)
 * (@lukelukeluke)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300363)
 * Did you manage to fix this? I’m having the same error.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300364)
 * **[@lukelukeluke](https://wordpress.org/support/users/lukelukeluke/)**: If you
   require assistance then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic. This topic is 2 months old references an old version
   of WordPress.
 *  [Luke Seall](https://wordpress.org/support/users/lukelukeluke/)
 * (@lukelukeluke)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300365)
 * Thanks esmi, I intend to. However it is often the case that another user fixes
   the problem and doesn’t post the answer on the forum which is why I asked them.
 *  [Luke Seall](https://wordpress.org/support/users/lukelukeluke/)
 * (@lukelukeluke)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300366)
 * @_KDC-Labs Incase you didn’t fix it, here is a patched version from the author–
 * [http://www.tomsdimension.de/wp-plugins/no-future-posts/comment-page-4#comment-7076](http://www.tomsdimension.de/wp-plugins/no-future-posts/comment-page-4#comment-7076)
 *  [jakob_dunning](https://wordpress.org/support/users/jakob_dunning/)
 * (@jakob_dunning)
 * [12 years ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300377)
 * Here is a solution to make the plugin version 1.3 work with WP 3.9.
    After a 
   little research it seemed to me the cleanest way to solve the problem.
 * I pasted just the relevant lines, where you have to change the calls to “$wpdb-
   >prepare”. Correct me if I’m wrong.
 * [http://pastebin.com/wiZCZYyg](http://pastebin.com/wiZCZYyg)
 * Cheers, Jakob
 *  [jakob_dunning](https://wordpress.org/support/users/jakob_dunning/)
 * (@jakob_dunning)
 * [12 years ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300378)
 * Seems I was a little too quick on the trigger – future posts will be shown but
   cannot be accessed when not logged in. When trying to access them without being
   logged in, I get a 404 error. Now using the “Future is now” ([http://wordpress.org/plugins/the-future-is-now/](http://wordpress.org/plugins/the-future-is-now/))
   plugin, which seems to work.

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

The topic ‘Error – wpdb::prepare()’ 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/)

 * 6 replies
 * 4 participants
 * Last reply from: [jakob_dunning](https://wordpress.org/support/users/jakob_dunning/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/error-wpdbprepare/#post-4300378)
 * Status: not resolved