mình cài cái theme cho site wp thì nó hiện cái lỗi này
Warning: implode() [function.implode]: Invalid arguments passed in /home/xxxxx/public_html/xxxxx.com/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-functions.php on line 1185
Pro nào biết fix lỗi này thì giúp mình nhé :binhsua09:
Warning: implode() [function.implode]: Invalid arguments passed in /home/xxxxx/public_html/xxxxx.com/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-functions.php on line 1185
PHP:
$in_cats = array_reverse( array_merge( $in_cats, $term_children_data ) );
}
if( is_array( $in_cats ) ){
$in_cats = "'" . implode( "', '", $in_cats ) . "'";
$whichcat .= "AND $wpdb->term_taxonomy.term_id IN ($in_cats)";
}
$post_type_object = get_post_type_object( 'wpsc-product' );
$permitted_post_statuses = "'" . implode( "', '", $query->query_vars['post_status'] ) . "'"; <----dòng 1185
$whichcat .= " AND $wpdb->posts.post_status IN ($permitted_post_statuses) ";
$groupby = "{$wpdb->posts}.ID";
$this->sql_components['join'] = $join;
$this->sql_components['fields'] = "{$wpdb->posts}.*, {$wpdb->term_taxonomy}.term_id";
$this->sql_components['group_by'] = $groupby;
//what about ordering by price