-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error: must be of type string, bool given #387
Comments
Got a similar error, but in a different context: OCA\Files_Antivirus\Status::parseResponse(): Argument #1 ($rawResponse) must be of type string, bool given, called in /data/nextcloud/apps/files_antivirus/lib/Scanner/ExternalClam.php on line 74 NC 29.0.9, files_antivirus 5.6.0 But in my case, the message is "only" ugly, but it shows a real problem with clamav. The $rawResponse is bool "false", but the checked "stream_get_meta_data" timeout in the function shutdownScanner in Scanner/ExternalClam.php is also false (because the clamav daemon segfaulted during scanning :( ). Maybe it will be a good idea, not only to check the timed_out from the metadata, but also direct $response===false there, to check if the fgets fails. |
I found the same bug today on another nextcloud : log:
NC 28.0.11, Antivirus for files 5.6.0 It's not a chromeOS but the sync client |
How to use GitHub
Steps to reproduce
Expected behaviour
FIle should be sent with no antivirus issue
Actual behaviour
File cause an error from the Clamav plugin: "must be of type string, bool given"
If the module filas_antivirus is disabled the ChromeOS upload works fine.
There is no upload issue on other OSes
Server configuration
Web server: Nginx
Database: Maria
PHP version: 8.2
Nextcloud version: 29
List of activated apps
Nextcloud configuration
Operating system: ChromeOS 127.0.6533.132
Nextcloud Log
The text was updated successfully, but these errors were encountered: