EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7663 of /includes/common.inc).

Events happening in the community are now at Drupal community events on www.drupal.org.
marcelolaia's picture

EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7663 of /includes/common.inc).

Notice: Trying to get property of non-object in taxonomy_form_term() (line 735 of /modules/taxonomy/taxonomy.admin.inc).

The website encountered an unexpected error. Please try again later.

Drupal 7.22
Openscholar 3.6
Downloaded from http://openscholar.harvard.edu/download

Comments

Here is my site

marcelolaia's picture

Here is my site: http://ppgcf.ufvjm.edu.br/~ppgcf/marcelolaia

I need your helps to solve Notices and Warmings and to solve the Publications issue above.

I could access my publications by Administrator, add, delete, edit. I only was unable to access they by menu Publications (Publicações, in Portuguese) http://ppgcf.ufvjm.edu.br/~ppgcf/marcelolaia/publications

i.e.

http://ppgcf.ufvjm.edu.br/~ppgcf/marcelolaia/publications/biotecnologia-...
http://ppgcf.ufvjm.edu.br/~ppgcf/marcelolaia/publications/new-genes-xant...
http://ppgcf.ufvjm.edu.br/~ppgcf/marcelolaia/publications/selection-and-...
http://ppgcf.ufvjm.edu.br/~ppgcf/marcelolaia/publications/isolation-dete...

Please, could you help me?

Thank you very much!

Marcelo, What is your error

jsagotsky's picture

Marcelo,

What is your error level? You can change it at /admin/config/development/logging. I recommend setting them to 'none' on production sites.

Jon

Jon, done.

marcelolaia's picture

Jon, thank you very much!

Have you any ideia about "EntityMalformedException"? I have posted it on the first post in this topic.

Not off the top of my head.

jsagotsky's picture

Not off the top of my head. When did you download OpenScholar? I know the 3.6 tarball had some issues so we rebuilt it a week or two ago.

I have downloaded from harvard

marcelolaia's picture

I have downloaded a week or soon ago from harvard. I got a tarball openscholar-7.x-3.6.tar_1.gz

meno1max's picture

I don't use Openscholar and I've had this exact error message on one of my sites for months. Patches suggested in other post made no difference. Users (and robots...) only get a generic error message, but my logs are full of these PHP errors.

Today, after the entity 7.x-1.2 upgrade, the line of code involved has changed (from 7663 to 7693) but results are identical:
EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7693 ... /includes/common.inc

Ideas, anybody? Please.....

found it

allabakash.g's picture

we are creating node using Ctools popup.

we were not returning form using drupal_get_form()

<?php
if (!$js) {
    return
drupal_get_form('rti_questions_node_form', $node);
}
?>

after we return drupal_get_form()

EntityMalformedException got vanished.

hope, it will help someone.

Where I need to do this changes?

marcelolaia's picture

Dear allabakash.g, where or in which file I need to do that changes? Please! Thank you very much.

<?php
if (!$js) {
    return
drupal_get_form('rti_questions_node_form', $node);
}
?>

my problem originating from media

dibyadel's picture

php
Date Wednesday, October 16, 2013 - 20:15
User admin
Location http://localhost:8082/neeranchal111013/?q=admin/config/media/galleries
Referrer http://localhost:8082/neeranchal111013/?q=admin/config
Message EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7663 of C:\wampserver\www\neeranchal111013\includes\common.inc).
Severity error
Hostname 127.0.0.1

Dibya Dutta
New Delhi

I've encountered this same

tomsherlock's picture

I've encountered this same error while building my own module.

commons.inc's entity_extract_ids( ) is looking at $info['entity keys']['bundle'] for the name of the key.
In my case, I set the name of the key to 'bundle type'.

entity_extract_ids( ) then looks at the $entity being examined for the property 'bundle type':
$entity->bundle_type

So querying $entity->bundle_type should return a value, unless NULL.
In my case it would be 'event_station'

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: