Getting two warning messages after first time open home page.
Warning: Array to string conversion in dempo_preprocess_html() (line 908 of themes/contrib/dempo/dempo.theme).
dempo_preprocess_html(Array, 'html', Array)
call_user_func_array('dempo_preprocess_html', Array) (Line: 285)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 436)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 158)
Warning: Array to string conversion in dempo_preprocess_html() (line 913 of themes/contrib/dempo/dempo.theme).
dempo_preprocess_html(Array, 'html', Array)
call_user_func_array('dempo_preprocess_html', Array) (Line: 285)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 436)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 158)
Comments
Comment #4
sakthi_dev commentedPlease review.
Comment #5
sarwan_verma commentedHi ,
I have fixed this issue Warning: Array to string conversion in dempo_preprocess_html() (line 908 of themes/contrib/dempo/dempo.theme) and also attached patch.
Comment #6
ravi kant commented@sarwan
We should never set hardcode values like
if ($font_head_family == '1') {so i am not preferring your patch.Thank you @sarwan
@sakthi_dev
The error has gone when i switched to your branch but i got style issue as attached screenshot "font-error-after-switch-branch".
Also @sakthi_dev, i have another ticket https://www.drupal.org/project/dempo/issues/3389842 and this ticket MR is solving my issue of this ticket also.
I need your suggestions.
Thank you @sakthi_dev
Comment #7
drupalnesia commentedTry 3.x.x version
Comment #8
drupalnesia commentedComment #9
chetan 11 commentedComment #10
chetan 11 commentedComment #11
chetan 11 commented