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.
In cron jobs, when trying to update status to a node that could not be loaded, it creates an illegal node by anonymus, without any type.
See media_youtube.module:134
while ($item = db_fetch_array($data)) {
$node = node_load(array('vid' => $item['vid']));
$node->{$item['field_name']}[$item['delta']]['status'] = $media['status'];
node_save($node);
}
changed to:
while ($item = db_fetch_array($data)) {
$node = node_load(array('vid' => $item['vid']));
if (empty($node)) continue;
$node->{$item['field_name']}[$item['delta']]['status'] = $media['status'];
node_save($node);
}
Comments
Comment #1
gabrielu CreditAttribution: gabrielu commentedComment #2
gabrielu CreditAttribution: gabrielu commented