Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated function: strpos(): Passing null to parameter #1 #18

Closed
indigoxela opened this issue Oct 18, 2023 · 3 comments · Fixed by #19
Closed

Deprecated function: strpos(): Passing null to parameter #1 #18

indigoxela opened this issue Oct 18, 2023 · 3 comments · Fixed by #19

Comments

@indigoxela
Copy link
Member

Full message on PHP 8.1:

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in theme_help() (line 2483 of ...core/includes/theme.inc).

This is caused by theme('help') without any variables passed. Not sure, why that's there, anyway. It seems to be ancient code.

Maybe just remove that line?

@indigoxela
Copy link
Member Author

A PR is available now.

@herbdool
Copy link
Contributor

@indigoxela thanks! I don't know why it's there either - maybe something I removed and I don't remember.

@indigoxela
Copy link
Member Author

I don't know why it's there either

My suspicion is, that this is some leftover code from the D6 to D7 migration (very old code). 🤷

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 a pull request may close this issue.

2 participants