• Resolved golddave

    (@golddave)


    Can anybody tell me what is wrong with the following line:
    $tagData = implode(“,”, $wpdb->get_col(“SELECT meta_value FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID=$wpdb->postmeta.post_id WHERE (meta_key=’ttaglist’ OR meta_key=’technorati’) AND post_status=’publish’$where ORDER BY post_date DESC$limit”));

    I get the following error in my sidebar at this line:
    Warning: implode() [function.implode]: Bad arguments. in /home/golddave/public_html/palm/wp-content/plugins/technoratitagging.php on line 285

    This error was introduced upon upgrading from WordPress 2.0.5 to 2.0.6.

    Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter golddave

    (@golddave)

    Any takers? This is for an old technorati tagging plugin that I prefer over Ultimate Tag Warrior because I’m more comfortable with it. (UTW is a great plugin, by the way.) anyway, I’d really like to get it working again so I don’t have to convert all my blogs to a new tagging system. For some reason 2.0.6 throws an error on this implode function call where 2.0.5 did not. It doesn’t make any sense to me since implode is a PHP function and not a WordPress function.

    Thread Starter golddave

    (@golddave)

    I feel like an idiot. I did a little more research and found that there are smartquotes used when creating the variable $where that is used in the query. When I replaced the smartquotes with standard quotes the query worked!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error When Implode() Is Used In Plugin’ is closed to new replies.