I have a problem when viewing an entry that has a trackback/web link it it. If you go in to edit that entry and go to the bottom to preview the entry I get something that looks like this.
Post Preview (updated when post is saved)
Title
Filed under: General �? @ 9:22 am
Warning: Invalid argument supplied for foreach() in path-to-blog\wp-content\plugins\popularity-contest.php on line 1248
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)’ at line 3
I only get this error on the entry that has the link or trackback in it. The entry looks fine when viewing the blog.
The problem is on line 767 of the xmlrpc.php file. I looked at the copy from 2/10/05 and the line looked like this.
$struct[‘htmlUrl’] = wp_specialchars(get_category_link(false, $cat[‘cat_ID’], $cat[‘cat_name’]));
In the new version it looks like this
$struct[‘htmlUrl’] = wp_specialchars(get_category_link($cat[‘cat_ID’]);
If you change this line it will work.