InvalidArgumentException: $string ("") on some systems when edititng a content type

Created on 9 August 2023, over 1 year ago
Updated 24 May 2024, 6 months ago

Problem/Motivation

Issue Provide default options for each content type Fixed introduced the usage of backticks in PHP.

The line (215) in node_keep.module

'#title' => t(`Default option for "Prevent this node's alias from being changed"`),

can result in

InvalidArgumentException: $string ("") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (line 132 of /var/www/html/web/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).

on some systems when edititng a content type.

It is safer to just use a string instead of "executing" the string.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇧🇪Belgium stefdewa

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

Comments & Activities

Production build 0.71.5 2024