• I get this message on my website. Did some research on this topic and did mange to hide the error message but I would like to solve the problem for good. Problem is I can’t figure what I need to change about the codes. These are the problematic lines:

    public function prepare( $query, $args ) {
    		if ( is_null( $query ) )
    			return;

    $query = $wpdb->prepare( "SELECT t.*, COUNT(*) from $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN $wpdb->term_relationships AS r ON r.term_taxonomy_id = tt.term_taxonomy_id INNER JOIN $wpdb->posts AS p ON p.ID = r.object_id WHERE p.post_type IN('". $post_types."') AND tt.taxonomy IN('". $taxonomies."') GROUP BY t.term_id");

    Hope you will be able to help me out, thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Missing argument 2 for wpdb::prepare(),’ is closed to new replies.