I use this module with view_own and TAC lite.

I can use this module and grant access to node references users in CCK but i can't change the permissions in http://mysite/admin/user/permissions.

Here is the error :
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 1509010 bytes) in /var/www/cedricm/includes/form.inc on line 2056

This page usually take long to load as i have around 10 different user roles and many additional modules installed ( around 15 ).

What can i do ?

Comments

danielb’s picture

Does disabling this module solve your problem?

PePiToO’s picture

yes it did but i really need your module so i found a way to go around it and use admin/user/persmissions/N to display only the permissions role by role...
Setting permissions this way get so long to do though

danielb’s picture

Sorry I don't understand the problem.

danielb’s picture

This module only adds one permission to that list - I don't think it should cause this problem.
You don't have any other output on the page that could add to the memory? Often a giant drupal_set_message or another piece of themed output like a block will cause this.

danielb’s picture

Status: Active » Postponed (maintainer needs more info)
Ghostthinker’s picture

Hallo,
Try to increase your php memory limit. There are many ways to do that, here is a quick one:
in your settings file, add:

ini_set('memory_limit', '48M');
danielb’s picture

^ good idea, I've had to do this on most of my sites for other reasons anyway.

danielb’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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

stefan81’s picture

Status: Closed (fixed) » Active

Strangely, I have the same issue.

When I access the node edit page,
as an user who should have the edit permission granted through this module, I get a blank page.

The error message below is generated by the error log of my local server, running under php 5.3.2
(Running with php 5.2.13 get no error at all)

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 243 bytes) in /Applications/MAMP/htdocs/mydrupalsite/sites/all/modules/nodeaccess_nodereference/nodeaccess_nodereference.module on line 250

However, the memory seems to be no problem.

If I access the page as master admin I can see the site properly,
as I already have the appropriate permissions granted through drupal core, I guess.

Any clue how this issue could be solved?

stefan81’s picture

According to the error log, the error is happening here:

    if (!empty($ops)) {
      $do = implode('/', $ops);
      switch ($row->realm) {
        case 'nodeaccess_userreference':
          $account = user_load(array('uid' => $row->gid));
          return t('Referenced user %name may !do this node', array('%name' => $account->name, '!do' => $do));
        case 'nodeaccess_userreference_author':
          $account = user_load(array('uid' => $row->gid));
          return t('Node author %name may !do this node', array('%name' => $account->name, '!do' => $do));
        case 'nodeaccess_userreference_all':
          return t('All users may !do this node', array('!do' => $do));
      }
    }
stefan81’s picture

Status: Active » Closed (fixed)

Ok, sorry. It was a stupid issue.
The problem actually was rooted at: Node access node reference.

The page had a node reference referencing to itself.
This generated a loop.

Thank you for this great module!!