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

Another deprecated error under PHP 8.x #484

Open
s22-tech opened this issue Apr 28, 2024 · 0 comments
Open

Another deprecated error under PHP 8.x #484

s22-tech opened this issue Apr 28, 2024 · 0 comments

Comments

@s22-tech
Copy link

s22-tech commented Apr 28, 2024

If a user is not given a firstname and/or lastname, this error is shown:

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/cal/includes/user.php on line 493

In MySQL, changing the default for those two columns from NULL to '' would be a quick fix.


And these:

Warning:  Undefined array key "SMTP_USERNAME" in /admin.php on line 776
Warning:  Undefined array key "SMTP_PASSWORD" in /admin.php on line 781

In admin.php, change:
$s['SMTP_PASSWORD'] ?: ''
to:
$s['SMTP_PASSWORD'] ??= ''

and
$s['SMTP_USERNAME'] ?: ''
to:
$s['SMTP_USERNAME'] ??= ''

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

No branches or pull requests

1 participant