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.
I have a problem when I create node and assign it to the front page.
Next set of error's popup
Notice: Undefined index: submitted in rdf_preprocess_node() (line 550 of core/modules/rdf/rdf.module).
Notice: Undefined index: submitted in rdf_preprocess_node() (line 557 of core/modules/rdf/rdf.module).
Checking code looks like mapping to RDF doesn't check for variable presence:
if ($variables['submitted']) {
$variables['rdf_template_variable_attributes']['submitted'] = $date_attributes;
}
proper code should be to check is $variables['submitted'] set or not:
if (isset($variables['submitted'])) {
$variables['rdf_template_variable_attributes']['submitted'] = $date_attributes;
}
Comments
Comment #1
scor CreditAttribution: scor commentedtemplate_preprocess_node creates
$variables['submitted']
and even sets it to''
if it's not meant to be displayed. I think it's fair to expect it to be still set in MODULE_preprocess_HOOK(). I suspect you have a contrib theme or module that unsets this variable. Also, the lines in your report don't quite match up, could you attach your rdf.module file please?Comment #9
pameeela CreditAttribution: pameeela commentedAs part of the Bug smash initiative, we are triaging issues that are marked 'Postponed (maintainer needs more info)'. This issue is more than 12 months old and no additional information has been provided to reproduce it. As such I am marking it 'Closed (cannot reproduce)'.
If anyone believes this issue should not be closed, please provide specific steps to reproduce when reopening it.