WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. a6april
    Member
    Posted 1 year ago #

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

    Error:
    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()???

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags