PHP 8 / str_replace(): Argument #2 ($replace) must be of type array|string, int given in str_replace()

Created on 14 October 2022, over 1 year ago
Updated 9 February 2023, over 1 year ago

Hi,

I have a crash on 2.x with PHP8.

Problem/Motivation

TypeError: str_replace(): Argument #2 ($replace) must be of type array|string, int given in str_replace() (line 708 of (...)/modules/contrib/entity_share/modules/entity_share_client/src/Service/JsonapiHelper.php)

Steps to reproduce

Go to the "Pull entities" page, select a remote server then select a channel.

Proposed resolution

Force the $remote_entity_id value to string.

Patch comming right up.

Seb

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Entity share client

Created by

πŸ‡«πŸ‡·France Seb_R

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.

Production build 0.69.0 2024