Skip to content

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

Open
Sama34 wants to merge 1 commit into
dvz:featurefrom
Sama34:feature
Open

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

Conversation

@Sama34

@Sama34 Sama34 commented Nov 17, 2023

Copy link
Copy Markdown

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

dvz commented Nov 17, 2023

Copy link
Copy Markdown
Owner

@dvz

dvz commented Nov 17, 2023

Copy link
Copy Markdown
Owner

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

Sama34 commented Jan 3, 2024

Copy link
Copy Markdown
Author

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