hi there,
error:
Recoverable fatal error: Argument 2 passed to _menu_attributes_form_alter() must be an array, null given, called in /sites/all/modules/menu_attributes/menu_attributes.module on line 167 and defined in _menu_attributes_form_alter() (Zeile 180 von /sites/all/modules/menu_attributes/menu_attributes.module).
reproduce error:
enable the menu integration of ET while having menu attributes enabled.
try to add a translation to an existing node results in error
greets,
attisan
ps.: though I personally would see this as a major / critical error I do understand that menu attributes isn't used that much.
Comment | File | Size | Author |
---|---|---|---|
#8 | menu_attributes-entity_translation_issue-7676205-8.patch | 649 bytes | pakmanlh |
Comments
Comment #1
bforchhammer CreditAttribution: bforchhammer commentedSorry, but I can't reproduce the error. Downloaded the module (dev version), enabled it and I was able to add new and edit existing translations/nodes without getting any errors.
Also, from the error message it sounds like it could easily be fixed in the menu_attributes module by adding some additional validation before calling
_menu_attributes_form_alter()
... therefore moving to the Menu Attributes issue queue.Comment #2
orbistertius CreditAttribution: orbistertius commentedI had the same error in version 1.0-rc2. I had no time to find out what had happened (I am using menu_blocks, nice_menus and views_menu perhaps this is not a real menu_attributes problem).
I changed line 143 (first line in menu_attributes_form_node_form_alter) to:
Hope this helps.
Comment #3
marktheshark CreditAttribution: marktheshark commentedEncountered the same error today.
Unable to edit a particular page because of this...
Used the fix in #2.
Comment #4
marktheshark CreditAttribution: marktheshark commentedComment #5
harshil.maradiya CreditAttribution: harshil.maradiya commentedComment #6
mordonez CreditAttribution: mordonez commentedSame problem here with Entity translation (entity) + Entity Translation Menu (entity) + Menu translation (i18n) + menu attributes.
Comment #7
mordonez CreditAttribution: mordonez commentedComment #8
pakmanlhHere I attached a patch with the solution on the #2 comment, thank you a lot!
Comment #10
pakmanlhSorry, the version was wrong, that's the 7.x-1.0-rc2
Comment #11
pakmanlh8: menu_attributes-entity_translation_issue-7676205-8.patch queued for re-testing.
Comment #12
joelpittetThis is fixed in dev, please use dev version. Changes will likely make it into rc3.
Comment #13
bendev CreditAttribution: bendev commented#8 works as expected
Thanks
Comment #14
ressa CreditAttribution: ressa commentedI just got this error as well, and updating to dev version solved it. Perhaps it's time to upgrade dev version to rc-3?
Comment #15
joelpittetReleased rc-3 today, cheers.
Comment #16
ressa CreditAttribution: ressa commentedAwesome, thanks!