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)

Issue fork dempo-3389801

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ravi kant created an issue. See original summary.

sakthi_dev made their first commit to this issue’s fork.

sakthi_dev’s picture

Version: 2.0.18 » 2.0.x-dev
Status: Active » Needs review

Please review.

sarwan_verma’s picture

StatusFileSize
new1.25 KB

Hi ,
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.

ravi kant’s picture

StatusFileSize
new267.69 KB

@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

drupalnesia’s picture

Status: Needs review » Fixed

Try 3.x.x version

drupalnesia’s picture

Status: Fixed » Closed (fixed)
chetan 11’s picture

chetan 11’s picture

chetan 11’s picture