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
Deprecation on use of str_replace with php 8.1 #888
Comments
Yes, I think the easiest is
I'll add it to the tweaks PR. |
michield
added a commit
to bramley/phplist3
that referenced
this issue
Sep 25, 2022
michield
added a commit
to bramley/phplist3
that referenced
this issue
Sep 25, 2022
This reverts commit 6510973.
marianaballa
pushed a commit
that referenced
this issue
Sep 29, 2022
marianaballa
pushed a commit
that referenced
this issue
Sep 29, 2022
* check on var before use * avoid php notice * change bugreport link to github issues * link to the subscribe page area * find config correctly * avoid notices * test on value * check on var * avoid error when the DB is not on the same host * #883 - make defaults more common * remove outdated JS code * pass a potential documentation URL on to commandline * expand on a plugin failing to initialise and add a URL for docs * fix path to config * simplify * use __DIR__ * remove unneeded configs * deal with 0 values * #888 - initialise website and domain (cherry picked from commit 6510973)
This issue has been mentioned on phpList Discuss. There might be relevant details there: https://discuss.phplist.org/t/is-php-8-x-x-supported-by-phplist/8371/16 |
Fixed in #886 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using php 8.1 I get deprecations for use of null parameter to str_replace()
This seems to highlight a problem with the order of use of the website and domain configuration settings. In connect.php line 15
the variables $website and $domain are set by this code
But the function getConfig() uses those variables and expects them to be already set., line 765 in defaultconfig.php
Two possible solutions
The text was updated successfully, but these errors were encountered: