If you use node privacy byrole module + flexinode module, and you change the default permisions of a flexinode, it tries to insert the following line (and some similar) to the variable table:

INSERT INTO variable (name, value) VALUES ('node_privacy_byrole_forview_flexinode-6_default_2', 's:1:\"1\";')
INSERT INTO variable (name, value) VALUES ('node_privacy_byrole_foredit_flexinode-6_default_2', 's:1:\"0\";')

The length of the name is more than 48 character, and the length of the name field is 48 character, it chopped, and of course dosen't work.

Comments

ankur’s picture

Component: MySQL » Code
Assigned: Unassigned » ankur
Priority: Normal » Critical

Will look into this matter, as it is important for this module to work with flexinode...

-Ankur

freyquency’s picture

I'm experiencing this as well.

ankur’s picture

A fix was committed to HEAD, and tagged as DRUPAL-4-6.

To make use of the fix, you will need to run a database upgrade script available in the CVS directory in addition to copying the latest 4.6 version of the module. Instructions for running the upgrade script are also available in the repository:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...

For a diff of changes to the "node_privacy_byrole.module" file, please see

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...

-Ankur

Anonymous’s picture