Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

EntityMalformedException on saving node #130

Open
geek-merlin opened this issue Jun 15, 2016 · 1 comment
Open

EntityMalformedException on saving node #130

geek-merlin opened this issue Jun 15, 2016 · 1 comment
Labels

Comments

@geek-merlin
Copy link

Some node save gives us this exception. No wonder - we can't rely on $form['#entity'] and must also check $form["#$entity_type"]

EntityMalformedException: Missing bundle property on entity of type node. inentity_extract_ids() (line 7880 of/www/htdocs/w013cb01/dev.consent.works/www/includes/common.inc). Backtrace:
entity_extract_ids('node', NULL) og.module:764
og_form_group_reference_validate(Array, Array) form.inc:1519
form_execute_handlers('validate', Array, Array) form.inc:1459
_form_validate(Array, Array, 'domain_scope_node_form') form.inc:1189
drupal_validate_form('domain_scope_node_form', Array, Array) form.inc:889
drupal_process_form('domain_scope_node_form', Array, Array) form.inc:385
drupal_build_form('domain_scope_node_form', Array) form.inc:130
drupal_get_form('domain_scope_node_form', Object) node.pages.inc:14
node_page_edit(Object) 
call_user_func_array('node_page_edit', Array) menu.inc:527
menu_execute_active_handler() index.php:21
geek-merlin added a commit to geek-merlin/og that referenced this issue Jun 15, 2016
@geek-merlin
Copy link
Author

Tested the above fix worksforme.

pfrenssen pushed a commit to pfrenssen/og that referenced this issue Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants