WebMail Pro 8 documentation

Troubleshooting DAV errors when using PHP 7.3

You may encounter the following errors when using DAV-related functionality:

PHP Fatal error:  Uncaught ErrorException: "continue" targeting
switch is equivalent to "break". Did you mean to use "continue 2"?
in /vendor/sabre/dav/lib/CalDAV/ICSExportPlugin.php:321

and it's a known issue with PHP 7.3 and newer. The problem is caused by a third-party DAV solution we use, and there's currently no good way for us to fix it in the product itself, but you can correct it on your installation. Locate /vendor/sabre/dav/lib/CalDAV/ICSExportPlugin.php file and adjust line ~321:

if (in_array((string)$child->TZID, $collectedTimezones)) continue;

as follows:

if (in_array((string)$child->TZID, $collectedTimezones)) { break; }