Hi,

Running the latest stable 4.7, I am trying to use the blogapi module to blog from a mobile. I have it set to movabletype. It mostly works except that each time I send a post it generates 3 errors in watchdog in the following sequence:

1) Invalid argument supplied for foreach() in /public_html/modules/node.module on line 359.

2) implode(): Bad arguments. in /usr/home/adam/public_html/modules/node.module on line 363.

3) 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 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in

This only happens when posting via blogapi, normal posting is fine. Lines 359 -> 363 of node.module are:

 foreach ($param as $key => $value) {
      $cond[] = 'n.'. db_escape_string($key) ." = '%s'";
      $arguments[] = $value;
    }
    $cond = implode(' AND ', $cond);

but I am not clever enough to know what they actually do!

The post does appear on the site despite these errors, but any categories (taxonomy) I choose to post it in are ignored if that is related? The blogging software I am using (ublog) does recognise the categories.

Thanks very much for any advice...I've searched the forums but can't find anyone else suffering the same problem!