- 🇮🇳India prashant.c Dharamshala
Fixed in the new release 3.x https://www.drupal.org/project/headbar/releases/3.0.0 → . Thanks to all the contributors.
- Status changed to Fixed
over 1 year ago 7:34am 18 April 2023
get error: Notice: Undefined index: render element in Drupal\Core\Theme\ThemeManager->render() (line 200 of core/lib/Drupal/Core/Theme/ThemeManager.php).
This is because the theme hook does not return ['render element' => 'elements',]
Suggested code (minimal changes):
$templates = array(
'headbar_block' => array(
// 'template' => 'headbar-block',
'render element' => 'elements',
),
);
There should be a change in block code to fit in with conventions:
//$build['#theme'] = array('headbar_block');
$build['#theme'] = 'headbar_block';
Fixed
2.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Fixed in the new release 3.x https://www.drupal.org/project/headbar/releases/3.0.0 → . Thanks to all the contributors.