Title: Error with WordPress 3.5
Last modified: August 20, 2016

---

# Error with WordPress 3.5

 *  [joshmcnair](https://wordpress.org/support/users/joshmcnair/)
 * (@joshmcnair)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/)
 * I am getting this error on all posts when I updated to wordpress 3.5
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/68/8824068/
   html/opadventureteamcom/wp-content/plugins/sharebar/sharebar.php on line 112 
   and defined in /home/content/68/8824068/html/opadventureteamcom/wp-includes/wp-
   db.php on line 990
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/68/8824068/
   html/opadventureteamcom/wp-content/plugins/sharebar/sharebar.php on line 124 
   and defined in /home/content/68/8824068/html/opadventureteamcom/wp-includes/wp-
   db.php on line 990
 * [http://wordpress.org/extend/plugins/sharebar/](http://wordpress.org/extend/plugins/sharebar/)

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/topic/error-with-wordpress-35/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/error-with-wordpress-35/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/error-with-wordpress-35/page/2/?output_format=md)

 *  [Kevin](https://wordpress.org/support/users/kvnsmooth/)
 * (@kvnsmooth)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260369)
 * I am also getting this error. I KNEW I shouldn’t have upgraded my wordpress installation
   yet.
 * Any fix for this yet?!? This error is showing up on all my post pages!
 *  [Cy Ball](https://wordpress.org/support/users/cy-ball/)
 * (@cy-ball)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260394)
 * I am also getting this error on all pages including admin. Please help us…
 * [http://cyrilfb.com](http://cyrilfb.com)
 *  [auckand](https://wordpress.org/support/users/auckand/)
 * (@auckand)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260453)
 * I have the same error using the Sharebar plugin. Until the developers update 
   their plugins try this in your function.php
 * ini_set( ‘display_errors’, false );
    error_reporting( 0 );
 * It stops error mesages and once the plugin devs update- just remove the code.
 * Worked over at [http://www.outdoorphotography.co.nz/](http://www.outdoorphotography.co.nz/)
 *  [Cy Ball](https://wordpress.org/support/users/cy-ball/)
 * (@cy-ball)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260474)
 * I have restored my site from backup. I could not leave it with those errors showing.
   
   [](http://cyrilfb.com)
 *  [Cy Ball](https://wordpress.org/support/users/cy-ball/)
 * (@cy-ball)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260486)
 * sorry, this is the error I was getting. It is different.
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/76/8978276/
   html/wp-content/plugins/digiproveblog/CopyrightProof.php on line 810 and defined
   in /home/content/76/8978276/html/wp-includes/wp-db.php on line 990
 * It cannot be viewed now because I restored from backup.
 * [http://cyrilfb.com](http://cyrilfb.com)
 *  [e3mobile](https://wordpress.org/support/users/e3mobile/)
 * (@e3mobile)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260487)
 * Hi All,
 * I had the same problem, I have a quick fix, not sure if its the right way but
   it seems to of worked for me. Edit the following file, sharebar.php
 * On Lines 112 and 124, change the following lines of code from this:
 * Line 112
    `$results =$wpdb->get_results($wpdb->prepare("SELECT * FROM ".$wpdb-
   >prefix."sharebar WHERE enabled=1 ORDER BY position, id ASC")); $str .= "\n";`
 * to this
 *  `$results =$wpdb->get_results($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."
   sharebar WHERE enabled=1 ORDER BY position, id ASC", null)); $str .= "\n";`
 * Line 124
 * From this
 *  ` $results = $wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$wpdb->prefix.”
   sharebar WHERE enabled=1 ORDER BY position, id ASC”)); $str .= “\n”;
    `
 * to this
 *  `$results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."
   sharebar WHERE enabled=1 ORDER BY position, id ASC", null)); $str .= "\n";`
 * You may or may not need to edit line 124 depending on your position…as I say 
   its a quick fix and its worked for me… hope this helps someone…
 *  [Kevin](https://wordpress.org/support/users/kvnsmooth/)
 * (@kvnsmooth)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260488)
 * We shouldn’t have to change the code in our themes to get around a bug in a plugin.
   My “workaround” for now at least was to disable the sharebar. If they can’t fix
   the sharebar plugin soon enough, there are plenty of other sharebars out there.
 *  [dhnaves](https://wordpress.org/support/users/dhnaves/)
 * (@dhnaves)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260515)
 * e3mobile…thanks for adding in the null for the additional argument, (worked just
   fine!) the sharebar author will probably use your code to patch the plugin. =)
 * kvnsmooth, feel your pain, but remember wp 3.5 was *just* released and most of
   these hard working plugin authors don’t even know what the wp devs are adding(
   and can’t see the probs until they occur) they are nice enough to give us their
   plugins for free. so, probably best to have juuuuuuust a bit more patience.
 *  [Jon Cuevas](https://wordpress.org/support/users/archondigital/)
 * (@archondigital)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260521)
 * e3mobile, thanks for the quick fix. I encountered the same error and applied 
   your solution. Everything works fine now. I hope the plugin author would release
   an official update soon.
 *  [Kevin](https://wordpress.org/support/users/kvnsmooth/)
 * (@kvnsmooth)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260523)
 * Yeah you are right, I’m being a little too hard on them. I should have known 
   better than to immediately upgrade. Lots of plugins that are used a lot were 
   had updates immediately. So I assumed developers have had early access to 3.5.
   Doesn’t mean they actively were working with it though. Looks like I have to 
   stick to either paid plugins or ones that are under active development.
 *  [drinks](https://wordpress.org/support/users/drinks/)
 * (@drinks)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260580)
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/resonate/public_html/
   wp-content/plugins/sharebar/sharebar.php on line 112 and defined in /home/resonate/
   public_html/wp-includes/wp-db.php on line 990
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/resonate/public_html/
   wp-content/plugins/sharebar/sharebar.php on line 124 and defined in /home/resonate/
   public_html/wp-includes/wp-db.php on line 990
    Neither changing the functions.
   php or editing the sharebar.php lines 112 or 124 have worked. 🙁 Does anybody
   else have any suggestions?
 *  [Pyo_](https://wordpress.org/support/users/pyo_/)
 * (@pyo_)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260582)
 * e3mobile, thank you for the fix. I applied it on my blog ([Pexiweb.be](http://www.pexiweb.be))
   and it works fine.
 *  [pookywiss](https://wordpress.org/support/users/pookywiss/)
 * (@pookywiss)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260585)
 * Thanks so much for this fix. Didn’t break till I switched to a shiny new theme
   and I was gutted when I saw the error but works fine now 🙂
 *  [lrsv5](https://wordpress.org/support/users/lrsv5/)
 * (@lrsv5)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260602)
 * THANKS A LOT e3mobile!! It works for me.
 *  [archiseek](https://wordpress.org/support/users/archiseek/)
 * (@archiseek)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-with-wordpress-35/#post-3260611)
 * Nice work. Worked lovely.

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/topic/error-with-wordpress-35/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/error-with-wordpress-35/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/error-with-wordpress-35/page/2/?output_format=md)

The topic ‘Error with WordPress 3.5’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sharebar.svg)
 * [Sharebar](https://wordpress.org/plugins/sharebar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sharebar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sharebar/)
 * [Active Topics](https://wordpress.org/support/plugin/sharebar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharebar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharebar/reviews/)

 * 39 replies
 * 35 participants
 * Last reply from: [Cartman](https://wordpress.org/support/users/cartman/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/error-with-wordpress-35/page/3/#post-3260755)
 * Status: not resolved