On the"Search-settings" page admin->config->search->settings, it currently states that "0% of the site has been indexed. There are 2692 items left to index." After running the cron manually it still says the same statement as a before. i have checked the search/ indexing tables and nothing appears to be immediately wrong. When checking the log when i have run the cron manually i see this error "EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7907 of /var/www/../common.inc)." inside the error logs.

Comments

vlorun created an issue. See original summary.

nikhilsukul’s picture

Hi @vlorun,

Unable to reproduce the issue. Do let me know, if you taken up the following steps:

On the"Search-settings" page admin->config->search->settings, when it currently states that "0% of the site has been indexed. Did you click on "Reindex-Site" button, this will give you a message like "the index will be rebuild". Then you should run cron manually, after running cron, you should be able to check the search settings page again, if there are more than 100 items, it might give you some progress in indexing and running cron few times will make it 100% indexed.

abhisaknigam’s picture

unable to reproduce the issue
I have run the manual cron and 100% of the site has been indexed. There are 0 items left to index.

abhisaknigam’s picture

Is that your file having same code snippet :

try to use this code

$info = entity_get_info($entity_type);
// Objects being created might not have id/vid yet.
$id = isset($entity->{$info['entity keys']['id']}) ? $entity->{$info['entity keys']['id']} : NULL;
$vid = ($info['entity keys']['revision'] && isset($entity->{$info['entity keys']['revision']})) ? $entity->{$info['entity keys']['revision']} : NULL;
// If no bundle key provided, then we assume a single bundle, named after the
// entity type.
$bundle = $info['entity keys']['bundle'] ? $entity->{$info['entity keys']['bundle']} : $entity_type;
return array($id, $vid, $bundle);

cilefen’s picture

Status: Active » Closed (cannot reproduce)