Whenever I try to post a comment I get this huge error:
warning: Invalid argument supplied for foreach() in /home2/mydainet/public_html/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /home2/mydainet/public_html/modules/node/node.module on line 525.
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 rwintnovels_node n INNER JOIN rwintnovels_users u ON u.uid = n.uid INNER JOIN rwintnovels_node_revisions r ON r.vid = n.vid WHERE in /home2/mydainet/public_html/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /home2/mydainet/public_html/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /home2/mydainet/public_html/modules/node/node.module on line 525.
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 rwintnovels_node n INNER JOIN rwintnovels_users u ON u.uid = n.uid INNER JOIN rwintnovels_node_revisions r ON r.vid = n.vid WHERE in /home2/mydainet/public_html/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /home2/mydainet/public_html/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /home2/mydainet/public_html/modules/node/node.module on line 525.
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 rwintnovels_node n INNER JOIN rwintnovels_users u ON u.uid = n.uid INNER JOIN rwintnovels_node_revisions r ON r.vid = n.vid WHERE in /home2/mydainet/public_html/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /home2/mydainet/public_html/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /home2/mydainet/public_html/modules/node/node.module on line 525.
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 rwintnovels_node n INNER JOIN rwintnovels_users u ON u.uid = n.uid INNER JOIN rwintnovels_node_revisions r ON r.vid = n.vid WHERE in /home2/mydainet/public_html/includes/database.mysql.inc on line 172.
Can someone help me out with this. Thanks.
Comments
Comment #1
anthonym commentedSimilar problem here, but it seems to only happen with one of my cck-created node types, page, story, audio, and other cck types are okay. What is going on? Comments can be posted, but the error looks horrible.
My error code:
Comment #2
anthonym commentedHi Miraploy. Have you had any help with this yet? I started a forum topic you might want to monitor as well if not: http://drupal.org/node/264946
Anthony
Comment #3
Flying Drupalist commentedThanks, issue not resolved yet. I'll be following both threads.
Comment #4
chipk commentedAny resolution here? I have the same bewildering problem.
Comment #5
ciprianmocanu commentedI have found a solution. I saw that the problem comes from node_load badly called from my template.php file. So i did my own node_load in template.php. Named it myown_node_load and used it instead of node_load. Everything worked. Here is the code for it (it's basically the node_load function but with an extra condition)
The changes are these:
Comment #6
ainigma32 commentedAs mentioned in http://drupal.org/node/264946 this error is caused by some code calling node_load with bad parameters. So use http://www.lullabot.com/articles/quick_and_dirty_debugging to determine the real problem and fix it there.
I'm going to assume that this issue was solved and set this issue to fixed.
Feel free to reopen if you think that is wrong.
- Arie
Comment #8
moldremoval commentedGreat site.Really wonderful.Thanks.