PHP Fatal error: __clone method called on non-object in /usr/share/iRony/lib/Kolab/CardDAV/ContactsBackend.php on line 1091.
So, this is iRony-3.1. The bug is in the code used only with Apple clients. I don't know if this is some incompatibility with Sabre/Vobject or a bug in our code. The fatal error should be simply prevented by the following patch:
--- a/lib/Kolab/CardDAV/ContactsBackend.php +++ b/lib/Kolab/CardDAV/ContactsBackend.php @@ -1097,7 +1097,7 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend // translate custom properties with a matching prefix to labelled items foreach ((array)$contact['x-custom'] as $prop) { $name = $prop[0]; - if (strpos($name, $propname) === 0) { + if (strpos($name, $propname) === 0 && $vc->{$name}) { $label = strtolower(substr($name, strlen($propname)+1)); $this->_replace_with_labelled_prop($vc, $name, $propname, $label); }
I'd like our iRony expert, Thomas to see this.