RATE CARD!Pasang banner disini, dapatkan diskon 50%!

Catatan personal: Solving Error Warning in SEO SearchTerms Tagging 2 for WP 3.5+

Catatan personal: Solving Error Warning in SEO SearchTerms Tagging 2 for WP 3.5+

SEO SearchTerms Tagging 2 is one of the popular WordPress Plugins. but some users WordPress version 3.5, having problems since finding the error warning like this:

Warning: Missing argument 2 for wpdb::prepare(), called in /home/*/*/*/wp-content/plugins/searchterms-tagging-2/searchterms-tagging2.php on line 658 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/searchterms-tagging-2/searchterms-tagging2.php on line 695 and defined in /home/*/*/*/wp-includes/wp-db.php on line 990

After searching for some reference, finally I found the solution. to solve this problem, it is not as difficult as I imagined. we just need to fix a few lines of code on a line 658 and 695. please refer to figure it out carefully following code.

Change this code on line 658:

 $post_count = $wpdb->get_var($wpdb->prepare($sql));

With the code below:

 $post_count = $wpdb->get_var($wpdb->prepare($sql, ""));

now go to line 695, change the code below:

 $post_title = $wpdb->get_var($wpdb->prepare( $sql ));

to:

 $post_title = $wpdb->get_var($wpdb->prepare( $sql, "" ));

Finally, you have completed your work. select the update file and look at SEO SearchTerms tagging 2 options page and the Error warning is gone.

Sourche wordpress.org forum.

pasang banner premium

Add a Comment

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

Please komentar yang nyambung yaaa dengan topik postingan saya diatas!, jangan spam! Ayo buktikan kalau anda adalah manusia! * Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.