I keep getting an invalid argument warning
| Project: | UC Stock Notify |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
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
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.