Warning: implode() [function.implode]: Invalid arguments passed

sachi7477

Junior
Joined
Jun 22, 2011
Messages
189
Reactions
243
MR
0.049
Skype
Chat with me via Skype
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
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
Pro nào biết fix lỗi này thì giúp mình nhé :binhsua09:
 
xóa plug-in bằng ftp xong cài lại cậu
 
cậu xem thử $query->query_vars['post_status'] nó trả về có giá trị gì không, nếu giá trị là NULL thì sẽ bị lỗi
 

Announcements

Today's birthdays

Forum statistics

Threads
418,787
Messages
7,076,356
Members
170,873
Latest member
asapcanopy1

Most viewed of week

Most viewed of week

Back
Top Bottom