Simple fix Sharebar Plugin error with WordPress 3.5

I’ve happened upon an error log today displaying:

Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/techwork.dk/public_html/wp-content/plugins/sharebar/sharebar.php on line 112 and defined in/var/www/techwork.dk/public_html/wp-includes/wp-db.php on line 990
Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/techwork.dk/public_html/wp-content/plugins/sharebar/sharebar.php on line 124 and defined in/var/www/techwork.dk/public_html/wp-includes/wp-db.php on line 990

(Emphasis mine.)

And then a quick google search turned up the perfect solution by Techwork.dk.

You’ll need to use FTP to be sure that you can fix any errors if they occur. Copy the file and edit it offline. Then upload it back to your server.

Warning: You need to use FTP. See above!

Find the plugin Sharebar under wp-content/plugins/sharebar.php.

Download a copy. Make the edits described below.

Line 112 looks something like this:

[sws_code language=”php”] [/sws_code]

Correct line 112 to look like this instead:

[sws_code language=”php”] [/sws_code]


Line 124 looks something like this:

[sws_code language=”php”] [/sws_code]

Correct line 124 to loo like this instead:

[sws_code language=”php”] [/sws_code]

Upload it back.

You’re done!  If you have any questions leave them below and I’ll do my best to answer!

Notice how fast this page loads?

Synthesis Managed WordPress Hosting

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *