Calendar and contacts not working in cPanel installation

I have installed Nextcloud on a sub-domain on a cPanel server. Everything works fine except the Calendar and Contacts apps. I can’t add an appointment or contact, just get a “Failed to save event” message

Versions?
Config?
etc.

All the basic elements requested in the support template please.

cPanel version: 120.0.10
PHP version 8.2
Nextcloud version 29.02
Mail version 3.7.1
Calendar version 4.7.6

My config.php

<?php $CONFIG = array ( 'instanceid' => 'xxxxxxxxxxxxx', 'passwordsalt' => 'xxxxxxxxxxxxxxxxxx', 'secret' => 'xxxxxxxxxxxxxxxxxxx', 'trusted_domains' => array ( 0 => 'cloud.andrewhansen.au', ), 'datadirectory' => '/home/andrewha/cloud.andrewhansen.au/data', 'dbtype' => 'mysql', 'version' => '29.0.2.2', 'overwrite.cli.url' => 'https://cloud.andrewhansen.au', 'dbname' => 'andrewha_nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'default_phone_region' => 'AU', 'opcache.interned_strings_buffer' => '10', 'mysql.utf8mb4' => true, 'dbuser' => 'andrewha_nextclouduser', 'dbpassword' => 'xxxxxxxxxxxx', 'installed' => true, 'objectstore' => array ( 'class' => '\\OC\\Files\\ObjectStore\\S3', 'arguments' => array ( 'bucket' => 'andrewnextcloud', 'key' => 'xxxxxxxxxxxxxxxxx', 'secret' => 'xxxxxxxxxxxxxxxxxxx', 'hostname' => 'syd1.digitaloceanspaces.com', 'region' => 'syd1', 'port' => 443, 'use_ssl' => true, 'use_path_style' => true, ), ), 'mail_from_address' => 'admin', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => 'andrewhansen.au', 'mail_smtphost' => 'mail.andrewhansen.au', 'mail_smtpport' => '465', 'mail_smtpauth' => 1, 'mail_smtpname' => 'admin@andrewhansen.au', 'mail_smtppassword' => 'xxxxxxxxxxxxxx', );