When reverting the defaults for a node, content_access_delete_per_node_settings() calls content_access_per_node_setting(NULL, $node) to clear the cache.

But this causes following TypeError:

TypeError: content_access_get_settings(): Argument #1 ($setting) must be of type string, null given, called in modules/contrib/content_access/content_access.module on line 559 in content_access_get_settings() (line 262 of modules/contrib/content_access/content_access.module).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

matthijs created an issue. See original summary.

matthijs’s picture

Title: TypeError: content_access_get_settings() » TypeError when clearing per-node settings cache
Status: Active » Needs review