Ubuntu 18.04 and Owncloud 10.3.1

Hi,

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 :cry: 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.

No errors have been found.

Hey,

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.

Hi,

thank you for your response.
You mean this section for the Plugin.php?

This doesn’t work for me. The error still appears. Can‘t access my calendar and contacts.

Did I miss something to fix this?
What are your recommendation?

Hey,

yes. Indeed i mean the changes to lib/CardDAV/Plugin.php of https://github.com/sabre-io/dav/pull/1191/files#diff-a30601c4d61ac4368a0675a8c4f0af1f where the ones which i have applied to my ownCloud 10.3.1 installation and which seems to work for many users including me. :confused:

I would recommend to double or triple check the modifications, maybe there was a problem while applying the changes to the file in your installation?

1 Like

Hi; You’re right always to look closely :slight_smile:
Unfortunately I’m not able to find it …


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

Now I’m back in business; Thank you! :smiley:

1 Like