ERROR MSG:
user warning: Column count doesn't match value count at row 1 query: INSERT INTO node_limit VALUES('1', '1', 'test2', '0') in /home/www/sites/all/modules/node_limit/node_limit.module on line 521.

using Dev version (infact i have tried both version but getting same problem)

any suggestion, thanks in advance

;)

CommentFileSizeAuthor
#1 node_limit.patch625 bytesjapicoder

Comments

japicoder’s picture

StatusFileSize
new625 bytes

I suppose this module haven't been deep tested because this error is trivial.
As the warning says 'column count does not match' and this is because the INSERT query, needs 5 values instead of the 4 now it receives.

I solved it modifying the node_limit.install file, because it has an extra column 'node_type' which is managed by the node_limit_type module.

I send the simple patch.

However, the module has still big problems, like this at line 106 on node_limit.module: print_r($node); die(); (wtf??)

duaelfr’s picture

Status: Active » Closed (fixed)