Hi,
I searched through the issues and am pretty sure that this issue is not yet raised.
I would like to see a possibility to specify if a field is editable more detailed according to a user-role. E.g. allow editablefields for all users except anonymous users.
To realize this I choose a combination of "editablefields" and "field permissions". This works fine as long as the user has the permission.
But if the user has not the permission to edit this field, I get an error that
Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1450 of [roodDirectory]/modules/taxonomy/taxonomy.module.
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1450 of [roodDirectory]/modules/taxonomy/taxonomy.module).
Both modules work fine by themselves, but in the combination I receive this error.
Maybe I can find a fix, but I would be glad I someone could provide a patch for this behaviour.
UPDATE:
I deleted the field and taxonomy terms and recreated them. But I get even another error:
EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7409 of [roodDirectory]/includes/common.inc).
As soon as I deactivate Field-Permissions it works fine. The other way around too, if I activate editable-fields and deactivate field-permissions it's also no problem.
Comments
Comment #1
johnvI used this recipe: #1344634: Editing fields without update access (D7)
Does it suit your needs?
Comment #2
arcaneadam commentedI recently experienced the same error on one of my installations.
EntityMalformedException: Missing bundle property on entity of type profile2. in entity_extract_ids() (line 7409 of [roodDirectory]/includes/common.inc).After racking my brain about why it worked locally and not on the server, I finally figured aout that the server had been updated recently and the new PHP apc configuration called for an M to be added on the apc.shm_size setting for it to work.
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0I finally figured it out after running drush and seeing the error above. What was happening is that the PHP didn't have enough memory to store the form_state and was there fore not keeping the entity in storage for submitting it when the form submitted in the background.
Comment #3
MGParisi commentedIm sorry, I got this error and can't figure out your solution.
Comment #3.0
MGParisi commentedAdded another error message to the explanation