Deprecated function use: htmlspecialchars()

Created on 23 November 2022, over 1 year ago
Updated 21 November 2023, 7 months ago

Problem/Motivation

My configuration

Drupal Version 9.4.8
Web server: Apache/2.4.33 (Win64) OpenSSL/1.0.2u mod_fcgid/2.3.9
Database: MySQL 5.7.24
PHP: 8.1.0

Reproducing the issue

  1. Do a fresh install of Group module v3.0.0-beta4.
  2. Install the Group and Group node modules.
  3. Visit: /admin/group/types/add

You will see...

Deprecated function: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Component\Utility\Html::escape() (line 424 of core\lib\Drupal\Component\Utility\Html.php).
Drupal\Component\Utility\Html::escape(NULL) (Line: 262)
Drupal\Component\Render\FormattableMarkup::placeholderEscape(NULL) (Line: 232)
Drupal\Component\Render\FormattableMarkup::placeholderFormat('Created %entity_label', Array) (Line: 195)
Drupal\Core\StringTranslation\TranslatableMarkup->render() (Line: 15)
Drupal\Core\StringTranslation\TranslatableMarkup->__toString()
array_diff(Array, Array) (Line: 112)
entity_redirect_form_alter(Array, Object, 'group_type_add_form') (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'group_type_add_form') (Line: 835)
Drupal\Core\Form\FormBuilder->prepareForm('group_type_add_form', Array, Object) (Line: 279)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
...
🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom SirClickALot Somerset

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India ayush.pandey

    Tried the module of version 3.0.0-beta4 with Drupal 9.4 and the issue is not reproducible from the provided steps. The path '/admin/group/types/add' is working as expected. Please share if there are any other steps to reproduce the same.

  • Status changed to Postponed: needs info 7 months ago
Production build 0.69.0 2024