Error message in Add view from template page

Created on 8 May 2023, over 1 year ago
Updated 29 June 2023, over 1 year ago

Problem/Motivation

Following error message is displayed when to visit Add View from Template page.
Deprecated function: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated...

Steps to reproduce

1. Make sure you have installed

  • Calendar module
  • Webform module

2. Visit admin/structure/views/template/list page.
3. Long error message will be shown, if config is set to show all error messages.

Proposed resolution

File: views_templates/src/Plugin/ViewsDuplicateBuilderBase.php
Function: function replaceTemplateKeyAndValues()
Make sure $replace_value is not null

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Austin986

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

Comments & Activities

Production build 0.71.5 2024