Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | Screenshot - 030213 - 16:01:02.png | 21.8 KB | radiobuzzer |
Comments
Comment #1
radiobuzzer CreditAttribution: radiobuzzer commentedconsequently 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.
Comment #2
radiobuzzer CreditAttribution: radiobuzzer commentedHere is the screenshot of the entry with no node attached
Comment #3
jonathan1055 CreditAttribution: jonathan1055 commentedHi 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
Comment #3.0
jonathan1055 CreditAttribution: jonathan1055 commentedfixed path