I’m using ubuntu 18.04 for my onwcloud server.
The repository update 10.3 removed my contact sync as reported by FKBOX:
The fix in Post #6 worked for me. Plugin.php
Line 689 : list($part) = explode(’;’, $contentType ?: ‘’);
But now the patch released as 10.3.1 And my Owncloud Instance is fully out of control.
Can’t see any contacts or calender entry’s online; Thunderbird and contact sync fails again.
ip - - [17/Nov/2019:21:58:29 +0100] “PROPFIND /owncloud/remote.php/dav/addressbooks/users/4bob/contacts HTTP/1.1” 500 5 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Lightning/6.2.5”
2019/11/17 21:58:31 [error] 12495#12495: *55 FastCGI sent in stderr: “PHP message: PHP Fatal error: strict_types declaration must be the very first statement in the script in /var/www/owncloud/lib/composer/sabre/dav/lib/CardDAV/Plugin.php on line 3” while reading response header from upstream, client: ip, server: 4bob.domain.com, request: “PROPFIND /owncloud/remote.php/dav/addressbooks/users/4bob/contacts HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock:”, host: “4bob.domain.com”
Could some please help me out?
Thank you.
Server configuration
Operating system:
Ubuntu Server 18.04 LTSR Web server:
NGINX 1.14.0 Database:
MariaDB 10.1.41 PHP version:
PHP 7.2.24-0 ownCloud version: (see ownCloud admin page)
10.3.1 Updated from an older ownCloud or fresh install:
10.3 Where did you install ownCloud from:
repository
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
i think you need to apply the fix in posting #7 and not in posting #6 from:
or as suggested in:
This works for me quite good with ownCloud 10.3.1 as well and this is also the “official” fix by the Sabre project/library which will be hopefully included in some of the next ownCloud versions.
Anyway, the changes are already online, so it went straight forward with this:
cd /var/www/owncloud/
rm lib/composer/sabre/dav/lib/CardDAV/Plugin.php
cd lib/composer/sabre/dav/lib/CardDAV/
wget https://github.com/sabre-io/dav/raw/master/lib/CardDAV/Plugin.php