New Upgrade 3.5 Error with my plug in (2 posts)

  1. a6april
    Posted 2 years ago #

    I have an error on one of my plugins I was hoping someone could help me with it.

    Warning: Missing argument 2 for wpdb::prepare(), called in / myPathtoetc

    on line 1776 and defined in /home/myPath/html_files/directory/wp-includes/wp-db.php on line 990

    The code in my script on line 1776 is:
    $category_number = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $cat_table_name" ) );

    I am not sure how to rewrite this....Any ideas? What missing argument()???

  2. George Stephanis
    Code Monkey
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic