Fatal PHP error b/c Symfony problems

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 35.0.0 beta 3
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13.6 (Trixie)
  • Web server and version (e.g, Apache 2.4.25):
    • Nginx 1.31.3
  • PHP version (e.g, 8.3):
    • 8.4, all necessary and most recommended modules installed and enabled
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • couple of days ago - don't remember exactly
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • plain OS, installed via command line years ago and upgraded to every new version, incl. betas
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Trying to upgrade the apps results in a fatal PHP error:

sudo -u www-data php occ app:update --all
PHP Fatal error: Declaration of OCA\audioplayer\Command\Reset::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /var/www/nextcloud/apps/audioplayer/lib/Command/Reset.php on line 38

I tried to disable the audioplayer app, but the error comes again, caused by a different app. App list and NC config can’t be accessed via OCC, as they throw the same error.

Upgrade the NC server itself works flawlessly.

Any ideas how to solve this? I’ll be happy to provide additional info if needed

Steps to replicate it (hint: details matter!):

  1. issue the command above on the command line

Log entries

Nextcloud

{"reqId":"PFuq3aUxiK0k8vDbEgKz","level":3,"time":"2026-08-19T10:11:07+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","scriptName":"occ","message":"Declaration of OCA\\audioplayer\\Command\\Reset::execute(Symfony\\Component\\Console\\Input\\InputInterface $input, Symfony\\Component\\Console\\Output\\OutputInterface $output) must be compatible with Symfony\\Component\\Console\\Command\\Command::execute(Symfony\\Component\\Console\\Input\\InputInterface $input, Symfony\\Component\\Console\\Output\\OutputInterface $output): int at /var/www/nextcloud/apps/audioplayer/lib/Command/Reset.php#38","userAgent":"--","version":"35.0.0.4","occ_command":["occ","app:update"],"data":{"app":"PHP"}}

Web server / Reverse Proxy

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

none

Configuration

Nextcloud

$CONFIG = array (
  'instanceid' => 'XXX',
  'serverid' => 42,
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => 'XXX',
    1 => 'XXX',
    2 => '192.168.XXX',
    3 => 'XXX',
    4 => '127.0.0.1',
  ),
  'datadirectory' => 'XXX',
  'dbtype' => 'mysql',
  'version' => '35.0.0.4',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/var/run/mysqld/mysqld.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'activity_expire_days' => 14,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' => 
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 1,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
  'logfile' => 'nextcloud.log',
  'loglevel' => 0,
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => 104857600,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'quota_include_external_storage' => false,
  'share_folder' => '/Shares',
  'skeletondirectory' => '',
  'theme' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'updater.release.channel' => 'beta',
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'pipe',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'XXX',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'XXX',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'XXX',
  'mail_smtppassword' => 'XXX',
  'mail_smtpsecure' => 'tls',
  'default_phone_region' => 'DE',
  'app_install_overwrite' => 
  array (
    0 => 'dicomviewer',
    2 => 'carnet',
    3 => 'onlyoffice',
    4 => 'richdocuments',
    5 => 'richdocumentscode',
    7 => 'files_photospheres',
    9 => 'audioplayer',
    10 => 'audioplayer_editor',
    12 => 'tasks',
    13 => 'ocsms',
    14 => 'files_trackdownloads',
    16 => 'twofactor_u2f',
    17 => 'checksum',
    18 => 'event_update_notification',
    19 => 'mindmap_app',
    20 => 'contacts',
    21 => 'deck',
    22 => 'spreed',
    23 => 'twofactor_webauthn',
    25 => 'previewgenerator',
    26 => 'calendar',
    27 => 'camerarawpreviews',
    28 => 'journeys',
    29 => 'imageconverter',
  ),
  'has_rebuilt_cache' => true,
  'maintenance_window_start' => 1,
);