Open s22-tech opened 2 months ago
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'] ??= ''
$s['SMTP_PASSWORD'] ?: ''
$s['SMTP_PASSWORD'] ??= ''
and $s['SMTP_USERNAME'] ?: '' to: $s['SMTP_USERNAME'] ??= ''
$s['SMTP_USERNAME'] ?: ''
$s['SMTP_USERNAME'] ??= ''
Another one:
PHP Deprecated: Creation of dynamic property RepeatingEvent::$_repeatEndDateTimeTS is deprecated in /cal/includes/classes/RptEvent.php on line 272
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:
In admin.php, change:
$s['SMTP_PASSWORD'] ?: ''
to:$s['SMTP_PASSWORD'] ??= ''
and
$s['SMTP_USERNAME'] ?: ''
to:$s['SMTP_USERNAME'] ??= ''