Error: Call to undefined function _social_group_get_current_group() in socialbase_group_link()

Created on 26 October 2023, about 1 year ago
Updated 27 October 2023, about 1 year ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.
Error: Call to undefined function _social_group_get_current_group() in socialbase_group_link() (line 34 of themes/contrib/socialbase/socialbase.theme).
socialbase_group_link(Object) (Line: 33)
Drupal\socialbase\Plugin\Preprocess\Node->preprocessElement(Object, Object) (Line: 51)
Drupal\bootstrap\Plugin\Preprocess\PreprocessBase->preprocess(Array, 'node', Array) (Line: 1441)
Drupal\bootstrap\Bootstrap::preprocess(Array, 'node', Array) (Line: 118)
bootstrap_preprocess(Array, 'node', Array)
call_user_func_array('bootstrap_preprocess', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)

Steps to reproduce

On Drupal 9
Install module version 2.1.x-dev
Add a node and view it
It will throw the error.

Proposed resolution

Need to define the function _social_group_get_current_group() properly.

🐛 Bug report
Status

Postponed: needs info

Version

2.1

Component

Code

Created by

🇮🇳India ayush.pandey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024