I used cck_field_perms to hide the viewfield. When users who do not have access to view that field try to edit the node, they get the error:

warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/weavenew/www/www/dp/includes/database.mysql.inc on line 400.
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 ' 0, 0)' at line 1 query: INSERT INTO content_type_page (field_dynamic_component_vname, field_dynamic_component_vargs, vid, nid) VALUES ('', , 0, 0) in /home/weavenew/www/www/dp/includes/database.mysql.inc on line 172.

The second value's quotes are omitted from the query string triggering an error.

Heads up.

Thanks!
Mac

Comments

jamesJonas’s picture

I have just used FormFilter.module to hide the arguments field. May be an option.

yoyek’s picture

I have the same error, anyone knows a fix?

darren oh’s picture

Status: Active » Closed (duplicate)

Duplicate of issue 217757.