Token gets replaced with "Array"

Created on 19 July 2024, about 2 months ago
Updated 13 August 2024, 26 days ago

Problem/Motivation

I set up a site_setting which shall contain just strings. I needed that because I need my frontend URL to be put somewhere. The Token to request that is this: [site_settings:site_settings--settings--0]. But when I use it, the replacement is the word "Array", because the str_replace function of the Token modul gets a 2 dimensional Array as replace argument.

I have no idea why but the site_settings.token.inc returns a array as a replacement for this token string. (see attachments)

In the end, the Token modul gets the token also as array. No idea if that is intended, but there is no 1 to 1 connection between the given token and the correct replacement. It's a string to array replacement, which might be the cause for the error.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany ro-no-lo

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024