Hi everyone!
I’ve set up Nextcloud on my Raspberry Pi 3 in order to stream my video content using WebDAV (among other things ).
I’ve installed Kodi on a remote computer and defined a WebDAV connection to my Nextcloud.
Streaming works fine, but I’ve found a bunch of errors in the log (see below).
Nextcloud version: 15.0.2.0
Operating system and version: OSMC 2018.12-1 (Debian Stretch)
Apache version: 2.4.25
PHP version: 7.0
The issue you are facing:
PHP error shown below in Nextcloud log section.
Is this the first time you’ve seen this error?: Y
Steps to replicate it:
- Run library update in Kodi connected to Nextcloud via WebDAV protocol.
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: fwrite() expects parameter 3 to be integer, string given at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php#88
HEAD /remote.php/dav/files/------rok.mkv
from ----- by ----- at 2019-03-30T23:53:27+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
config.php
The output of your Apache:
Apache log
I’ve looked at the code in Sapi.php and it seems that
$response->getHeader(‘Content-Length’)
is causing the issue by not returning an integer value.
I’ve also determined that all the errors in the log are connected to mkv files larger that 2 GB.
Smaller files are not causing this.
Anyone has any idea why is this happening?