I keep getting an invalid argument warning

fehin - March 25, 2009 - 01:47
Project:UC Stock Notify
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Whenever I add the stock amount for each attributes and click on submit, I get the warning message below.

* warning: Invalid argument supplied for foreach() in /modules/node/node.module on line 569.
* warning: implode() [function.implode]: Invalid arguments passed in /modules/node/node.module on line 573.
* 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 n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, 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 /includes/database.mysql.inc on line 174.

#1

longwave - May 1, 2009 - 14:37
Status:active» postponed (maintainer needs more info)

The SQL error seems to indicate this is something to do with node and/or product modules and not Stock Notify itself. Also, you mention attributes, which currently aren't supported by UC Stock Notify anyway... does this error disappear if you simply disable Stock Notify? I personally haven't seen this myself so will need more information on how to reproduce it, a full backtrace from devel module would be helpful so I can try to track it down.

 
 

Drupal is a registered trademark of Dries Buytaert.