Rebuilding node permissions AFTER setting up an ACL within terms and roles causes batch failure at between 25-50%.
Status report page reports: "6484 permissions in use"
Have one vocab with three terms being used used. Apply some normal view, update add tag settings for 4 roles. Have around 8000 nodes.
Getting this code on permission rebuild via the UI or drush.
The site is a D6 upgrade, switching from Tac Lite to Taxonomy Access
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=137615&op=do StatusText: error ResponseText: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7501 of /FOLDER/includes/common.inc).
BTW: in D7.12, have tons of PHP memory allowed (1024M)
Comments
Comment #1
doublejosh commentedThis results is a corrupt permissions set... will all pages locked out.
Comment #2
doublejosh commentedThis module doesn't directly call it and none of these look suspect.
http://api.drupal.org/api/drupal/includes%21common.inc/function/calls/en...
Comment #2.0
doublejosh commentedadd drupal version note.
Comment #2.1
doublejosh commentednote about this being AFTER setting up permissions.
Comment #3
doublejosh commentedComment #3.0
doublejosh commentedtypo
Comment #3.1
doublejosh commentedmore details
Comment #3.2
doublejosh commentedmemory
Comment #4
doublejosh commentedReduced the rule simplicity to the bare minimum with just one role and term. Still fails.
Disabling the module removes the problem as Node Access Permissions as then Disabled.
Comment #5
xjmThis is not an issue with TAC; rebuilding node access is a core function.
As for the EntityMalformedException, see: #1067750: Let Field API fail in a tale-telling way on invalid $entity. Something has screwed up the bundle (a.k.a content type) on at least one of your nodes. You might try:
SELECT nid FROM node WHERE type = ''to see if any nodes are saved in your database with empty content types.
And yeah, I deliberately don't use
entity_extract_ids()in the module because it is a travesty. :PComment #6
doublejosh commentedYou're right. Sorry I didn't close this!
Turned out an upgrade script caused some nodes to exist without a content type.
Comment #6.0
doublejosh commentednote about upgrade