I've had taxonomy access control running fine for a week or two - running latest 4.7.0 version with drupal 4.7.2

since yesterday, the roles pages for taxonomy access - i.e. http://mysite.com/admin/access/category/1 - all display blank when I go to them.

I've tried clearing the tables, reinstalling, deleting the tac files from modules and putting them back in. I also just upgraded to 4.7.3 but that's made no difference. I restored my backup tables and tac access seems to be working with the settings we set up, just can't get in to change them.

I recently upgraded php4-php5, it's not affected anything else but I'm wondering if it might be that?

I'm running php5, mysql5, apache2

Can give you a login to our site if you'd like to see for yourself. Any help much appreciated!!

Comments

keve’s picture

What version do you try to use: // $Id: taxonomy_access.module,v 1.77?
Does this happen if you use cvs version of TAxonomy_access (latest is: // $Id: taxonomy_access.module,v 1.88)?

catch’s picture

Hi, using v1.77

will overwrite with 1.88 and see if that fixes it.

keve’s picture

I tagged 1.88 for Drupal 4.7.

catch’s picture

Hi,

1.88 has fixed that issue. However, now many of our authenticated users can only see certain posts (from months ago, or only the posts since we upgraded the module. There wasn't a version upgrade in update.php - should there have been?

I had a similar issue with tac-lite - part of the reason I moved to taxonomy access control since it didn't have the same issue. Is there a way to refresh the permissions? uninstalling and reinstalling didn't work.

Thanks.

catch’s picture

Status: Active » Fixed

Managed to fix this by going into each role, taking view permissions for "uncategorised nodes" away from them. saving settings, then going back and putting them back in. Seems to be fine now. We've been doing other work on the site and server the past couple of days so likely due to that I think.

Thanks very much for your help with this, all seems to be working fine now and the module is great!

rkn-dupe’s picture

Status: Fixed » Active

Im working on the same project as Catch, he is away at the moment som im taking over this issue.

We are sadly still experiecning the problem again, blank pages as intitally indicated. Running on 1.88. Do you have any suggestions?

keve’s picture

1. What do you mean by:

the roles pages for taxonomy access - i.e. http://mysite.com/admin/access/category/1 - all display blank when I go to them.

Does it display nothing except title? Or the checkboxes are there?

2. You can refresh totally the node_access table, by deactivating TAC, then re-activate it again on its settings page.

rkn-dupe’s picture

Thanks for the reply:

1. Page totally blank, title doesnt even display - but only for that page.
2. Have tried that - not sure if it worked properly though, because the permissions were still set up.

rkn-dupe’s picture

Tried 2 again, referencing PhpMyAdmin at the same time, once it is deactivated the node_access table is empty. When it is activated the table is re-populated with the permissions settings I had before. However I still can't change them, and still getting that blank page :(

catch’s picture

Hi I'm back and just got this working again.

I did a complete uninstall of taxonomy access, and removed the row in the system table as well. Then reinstalled with the 1.88 version. I also increased php memory limit to 32mb - I think that might be the issue since we have a fairly large number of taxonomy terms (several hundred in 6 different vocabularies).

If that page calls every setting for every taxonomy term that might well be the issue since it'd be quite a big query all at once. Maybe it'd help to be able to call a page by vocabulary instead of (or as well as) by role to set permissions? i.e. we only use tac on forums and have large and increasing free-tagging vocabularies so memory could become an issue again later on assuming that was the problem.

keve’s picture

i also think this is a memory issue.

Recently i was thinking about a new feature, which would make a UI more userfriendly and simpler, too:
on TAC settings page:
- you can choose which vocabularies should ignored (this will not show up in category permissions page).
- Default permissions for ignored vocabularies.

What do you think about it?

catch’s picture

that sounds like a good idea to me.

We've got two possible uses for taxonomy access so far:

1. private forums (and hopefully the ability for individuals to moderate specific forums although I've not tried to set that up yet)

2. editing rights for CCK nodes as described here http://drupal.org/node/77475 - although that seems like a workaround to me, and I saw a patch for CCK which adds "edit all" to the default access control page which seems a lot easier to maintain.

Even if we use both options there are still vocabularies we won't need to use TAC on - i.e. our free tagging vocabulary. since we'd probably do the CCK edit access via a "sections" vocabulary meaning we'd only require it on two out of about 5 or 6, and two of the smaller ones.

Also in general, if sites are using free tagging the ui will require more and more memory as vocabularies increase into the thousands, so in terms of resource usage it'd help a lot.

catch’s picture

Just to confirm this - when I tried to reset view permissions (see the reset permissions bug which I just added to) on uncategorised nodes today, I also got the blank page as described before.

Changing memory limit from 32 to 36M in php.ini fixed it. We're currently transferring a lot of old content and free-tagging it from our old CMSes, since that job's just started though I think we could see our memory limit increasing to 50 or 60M within weeks.

keve’s picture

1. I was thinking about this approach of leaving out some vocabs.
in your opinion, what would be the default permissions for the 'ignored' vocabs?
How the default permissions should be defined? Defining default permissions for all user roles?
How about: For all user roles:
view,update,delete: Ignored.
Create, List: Allowed?
Any ideas?

2. I have a totally different approach in mind to make permission page smaller:
(a) Defining some vocabularies, where you can use different settings for each terms in that vocab.
(b) For terms in other vocabs: use 'default' permissions of the given vocabulary.

This would make the category permission page much smaller.
Because on that page the terms would be listed only for the 'special' vocabs (a). For vocabs (b) (e.g. free tagging vocabs) only default permission would be listed.

I await your comments on these.

catch’s picture

How about: For all user roles:
view,update,delete: Ignored.
Create, List: Allowed?
Any ideas?

Those are the settings we use for non-restricted vocabularies - it's not overriding node creation permissions (i.e. create book page) with "allowed" so that seems completely fine.

2. I have a totally different approach in mind to make permission page smaller:
(a) Defining some vocabularies, where you can use different settings for each terms in that vocab.
(b) For terms in other vocabs: use 'default' permissions of the given vocabulary.

That seems more flexible. You'd have vocabulary based permissions, then an option for term permissions for selected vocabularies right?

If I had a choice I'd go for the second idea - then say you had a web/intranet combined in one installation, you could by default hide everything in the intranet vocabulary from certain roles without the extra load on the page of each term - that wouldn't be possible with a default setting of "ignore", and it saves trying to make a catch all solution for default permissions.

keve’s picture

You are right: 2nd approach: a vocabulary based permissions, then an option for term based permissions for selected vocabularies.

jferjan’s picture

subscribing

I have the same problem.

summit’s picture

Hi,

I have exactly te same problem.
I have 50M to use, but the error is exhausted memory!
Please get into this bug for drupal 4.7.
Thanks a lot in advance,
greetings,
Martijn

keve’s picture

Status: Active » Closed (fixed)

This was solved in latest 5.x-2.x-dev or 6.x-dev version.

TAC for Drupal 4.6 or 4.7 is no longer supported.
Try using latest 5.x-2.x-dev or 6.x-dev version , the module has been
totally rewritten.

If issue remains, reopen it for 5.x-2.x-dev or 6.x-dev version.