While running the cron job I am getting the following exceptions

WD node: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7633 of /public_html/includes/common.inc).

WD cron: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7633 of /public_html/includes/common.inc).

I cannot debug further, please advise

CommentFileSizeAuthor
#2 Screenshot - 030213 - 16:01:02.png21.8 KBradiobuzzer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

radiobuzzer’s picture

Title: EntityMalformedException running cron job » EntityMalformedException running cron job, when scheduler pointing to deleted node

consequently I went to the content > scheduled and I saw that there was a task with no node associated , only date was shown. This seemed very suspicious. I therefore went manually to the SQL table 'scheduler' and I looked for the entry around the specified date. Indeed, that was a scheduled task pointing on a deleted node. I deleted this table row and now scheduler works again.

I do not know why this was still in the table, but it was causing failure.
I can recall that this issue starting occurring after the upgrade to drupal 7. The deleted node was entry there from drupal 6.

Perhaps, there should be some function that prevents error from tasks pointing to non-existing nodes.

radiobuzzer’s picture

Here is the screenshot of the entry with no node attached

jonathan1055’s picture

Status: Active » Closed (duplicate)

Hi radiobuzzer,

Yes you have found a problem here. It will be solved in the same fix as for #2011692: Prevent cron errors when scheduled nodes no longer exist hence closing this issue as a duplicate.

Jonathan

jonathan1055’s picture

Issue summary: View changes

fixed path