I'm checking out the new image.module (v. 1.97). Unfortunately it seems, that I can't create nodes of the type image without the need to add these to an existing gallery. If I don't add them to an existing gellery I get SQL-errors like these:

user warning: 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 'AND n.status = 1 ORDER BY n.created DESC' at line 1 query: SELECT n.nid, n.title FROM tgk_node n INNER JOIN tgk_term_node t ON n.nid = t.nid INNER JOIN tgk_term_data r ON t.tid = r.tid WHERE n.type = 'image' AND n.created < 1147781495 AND r.tid = AND n.status = 1 ORDER BY n.created DESC; in /srv/www/htdocs/drupal-03/includes/database.mysql.inc on line 120.

user warning: 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 name FROM tgk_term_data WHERE tid = ; in /srv/www/htdocs/drupal-03/includes/database.mysql.inc on line 120.

user warning: 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 'AND n.status = 1 ORDER BY n.created ASC' at line 1 query: SELECT n.nid, n.title FROM tgk_node n INNER JOIN tgk_term_node t ON n.nid = t.nid INNER JOIN tgk_term_data r ON t.tid = r.tid WHERE n.type = 'image' AND n.created > 1147781495 AND r.tid = AND n.status = 1 ORDER BY n.created ASC; in /srv/www/htdocs/drupal-03/includes/database.mysql.inc on line 120.

user warning: 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 name FROM tgk_term_data WHERE tid = ; in /srv/www/htdocs/drupal-03/includes/database.mysql.inc on line 120.

What do I do wrong?

In 4.6 it was possible to create image-nodes without adding them to a gallery. This was highly practical as I don't want every image to be part of some gallery.

Comments

jferjan’s picture

hi!

I have the exactly same problem. Norrin have you found any solution?

www.ferjan.net