kawish — 2012-02-22T14:11:20-05:00 — #1
One of my friend getting the following error in Wordpress blog at trendztime.com:
Warning: implode() [function.implode]: Invalid arguments passed in /home/urcric/public_html/trendztime.com/wp-content/themes/ZPRESS/functions/wpzoom-widgets.php on line 1450
Here are some lines from code:
if ($type == 'tag')
$postsq = $slugs;
elseif ($type == 'cat')
$postsq = implode(",",$category); <---- Line 1450
/* Before widget (defined by themes). */
Here is a screen shot of error:
battambang_kid — 2012-02-22T20:38:56-05:00 — #2
you have to make sure $category is an array.
you can initiate
$category = array();
at the top of the script to make sure it's default as an array.
system — 2012-02-24T07:49:22-05:00 — #3
Please be sure that $category is an array. You can check this by
gettype() php function.