Deprecated function: str_replace(): Passing null

Created on 21 November 2024, about 1 month ago

Problem/Motivation

I found a notice in the logs by using the module as an anonymous user:

Deprecated function: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in Drupal\ai_assistant_api\AiAssistantApiRunner->prePrompt() (Zeile 727 in /var/www/html/web/modules/contrib/ai/modules/ai_assistant_api/src/AiAssistantApiRunner.php)

This happens when the user name token should be replaced. The replacement is NULL.

Proposed resolution

🐛 Bug report
Status

Active

Version

1.0

Component

AI Assistants API

Created by

🇩🇪Germany ayrmax

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

Comments & Activities

Production build 0.71.5 2024