Cloudlog: [PHP 8.1] "Passing null to parameter #1 ($datetime) of type string is deprecated" errors while searching in logbook
Describe the bug When I search for log entries I often get this PHP error where the ‘Uploaded to LoTW’ arrow is seen:
A PHP Error was encountered
Severity: 8192
Message: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated
Filename: partial/log_ajax.php
Line Number: 200
data-original-title="LoTW Sent " data-toggle="tooltip" class="lotw-green">
To Reproduce Steps to reproduce the behaviour:
- Search for (part of) callsign.
- Scroll down until error is seen.
- White “Uploaded to LoTW” arrow is seen with PHP error above.
Expected behaviour No error and green up arrow. Looking into QSO data, the COL_LOTW_QSLRDATE has a valid date and COL_LOTW_QSL_RCVD is ‘Y’.
Screenshots
Server OS: FreeBSD 13.1 Server: nginx/1.22.1 PHP: 8.1.13 Git branch: dev Git commit: 04e99607 Git Tag: 2.1-94-g04e99607
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (13 by maintainers)
Just tested the code in pr 1893. Problem fixed.