Skip to content

str_replace() argument 2 only accepts array|string#2

Open
Sama34 wants to merge 1 commit intodvz:featurefrom
Sama34:feature
Open

str_replace() argument 2 only accepts array|string#2
Sama34 wants to merge 1 commit intodvz:featurefrom
Sama34:feature

Conversation

@Sama34
Copy link
Copy Markdown

@Sama34 Sama34 commented Nov 17, 2023

I think this issue is related to a PHP8 change but I couldn't find the references to it.

This warning stops users from login in to both the front and back end.

PHP Version: 8.2.11

@dvz
Copy link
Copy Markdown
Owner

dvz commented Nov 17, 2023

@dvz
Copy link
Copy Markdown
Owner

dvz commented Nov 17, 2023

Does it happen in production? It looks like deprecated errors should be hidden: https://github.com/mybb/mybb/blob/468900dc9a8a881c7835f78777fea4b2a8753c37/inc/class_error.php#L100

@Sama34
Copy link
Copy Markdown
Author

Sama34 commented Jan 3, 2024

Indeed, this happens if deprecated errors are shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants