I am trying to use a rule to reset content permissions. During the execution of the rule, I get this message:

Call to undefined function content_access_get_acl_id() in ....\sites\all\modules\content_access\content_access.module on line 391

But the function does exist in content_access.admin.inc though...

Comments

salvis’s picture

That means content_access.admin.inc ought to be loaded before calling that function. Look for 'include' elsewhere in content_access.module for the line that loads the file.

zeezhao’s picture

I had already fixed it locally by adding this line in content_access.module in:

function content_access_delete_per_node_settings($node){
require_once(drupal_get_path('module', 'content_access') .'/content_access.admin.inc');

Just reporting it so that it gets fixed, as I am not familiar with patch system...

nodecode’s picture

+1

I get the same error message and would really like to see this fixed in the next update. BTW when i go back to the node, it looks like everything worked properly despite the error message.

Love Content Access, couldn't run my site without it!

fago’s picture

Status: Active » Fixed

I moved the function in the main .module file. Please test.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.