Folders shared by links contain an empty list of files

Nextcloud version : 29.0.2
Operating system and version : 22.04.4 LTS
Apache or nginx version : 2.4.52
PHP version: 8.3.8

The issue you are facing:

There is a problem after updating Nextcloud and PHP. Public Share links open but the list of files is empty. At the same time, all other elements are present. You can download all the files, the download button works. I didn’t find any solutions on the web.

For logged user all fine.

PS. I am using NGINX PROXY

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

Undefined array key 0 at /var/www/html/nextcloud/apps/dav/appinfo/v2/publicremote.php#96

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxoc2xxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxx',
  'secret' => 'xxxxxxxyjS9xxxx',
  'trusted_domains' => 
  array (
    0 => 'cloud.xxx.net',
    1 => '192.168.100.121',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '29.0.2.2',
  'overwrite.cli.url' => 'https://cloud.xxx.net',
  'dbname' => 'xxxxxxxx',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxxxx',
  'dbpassword' => 'xxxxxxxxx',
  'installed' => true,
  'overwriteprotocol' => 'https',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'default_phone_region' => 'BY',
  'updater.release.channel' => 'stable',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'apporder',
    1 => 'files_archive',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'allow_local_remote_servers' => true,
  'maintenance_window_start' => 1,
);

The output of your Apache/nginx/system log in /var/log/____:

  GNU nano 6.2                                                                          error.log                                                                                   
[Thu Jun 13 00:00:01.248560 2024] [ssl:warn] [pid 206:tid 140284545992576] AH01909: NextCloudCT.local:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jun 13 00:00:01.248691 2024] [ssl:warn] [pid 206:tid 140284545992576] AH01916: Init: (NextCloudCT.local:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Jun 13 00:00:01.248845 2024] [mpm_event:notice] [pid 206:tid 140284545992576] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal oper>
[Thu Jun 13 00:00:01.248870 2024] [core:notice] [pid 206:tid 140284545992576] AH00094: Command line: '/usr/sbin/apache2'

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"6mGTrpzUgjTBsZd2CSeQ","level":3,"time":"2024-06-12T08:32:23+00:00","remoteAddr":"192.168.100.219","user":"--","app":"PHP","method":"PROPFIND","url":"//public.php/dav/files/tSAPKsF2t4HEFMC/","message":"Undefined array key 0 at /var/www/html/nextcloud/apps/dav/appinfo/v2/publicremote.php#96","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0","version":"29.0.2.2","data":{"app":"PHP"}}