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

sachi7477

Junior
Joined
Jun 22, 2011
Messages
190
Reactions
243
MR
0.059
Chat with me via Teams
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:
 

MomQua

Newbie
Joined
Nov 6, 2012
Messages
10
Reactions
301
MR
0.000
xóa plug-in bằng ftp xong cài lại cậu
 

ncxn

Hero
Joined
Feb 15, 2012
Messages
2,666
Reactions
2,244
MR
0.000
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
435,208
Messages
7,334,787
Members
186,653
Latest member
w88manucom
Back
Top Bottom