Erro after upgrade to 26.0.1 : Call to undefined method OCA\Talk\Config::isBreakoutRoomsEnabled() [fixed]

Nextcloud version (eg, 20.0.5): 26.0.1
Operating system and version (eg, Ubuntu 20.04): Debian
Apache or nginx version (eg, Apache 2.4.25): apache
PHP version (eg, 7.4): 8.1

The issue you are facing:

Just after upgrading to 26.0.1 (from 25.0.6 update yesterday) : i receive an internal error on web access (with the ID and the IP)

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

Steps to replicate it:

  1. Get a 25.0.6 installed
  2. Update via web to 26.0.1
  3. Update goes at end : seesm OK,
  4. Deactivate maintenance mode (via web button)
  5. See a lot of extension to update, click on update
  6. get the error (ID : 8NZUxqGF6ILregyWz26J)
  7. Open a windows private mode : open home page : get the error

The output of your Nextcloud log in ****: No access


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

<?php
$CONFIG = array (
  'debug' => false,
  'instanceid' => '**************',
  'passwordsalt' => '*******************',
  'secret' => '' => '**************',',
  'trusted_domains' => 
  array (
    0 => 'cloud.example.org',
  ),
  'datadirectory' => '/home/www/sites/cloud.example.org/docs',
  'dbtype' => 'mysql',
  'version' => '26.0.1.1',
  'overwrite.cli.url' => 'https://cloud.example.org',
  'dbname' => 'exemple_nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'exemple_nextcloud',
  'dbpassword' => '' => '*******************',',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'PLAIN',
  'mail_from_address' => 'contact',
  'mail_domain' => 'example.org',
  'mail_smtphost' => 'localhost',
  'mail_smtpname' => 'contact@example.org',
  'mail_smtppassword' => '' => '' => '*******************',',',
  'maintenance' => false,
  'loglevel' => 2,
  'mail_smtpport' => '25',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'FR',
  'htaccess.RewriteBase' => '/',
  'theme' => '',
  'updater.secret' => '' => '' => '*******************',',',
);

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

$ tail access.log
82.**.**.** - - [04/May/2023:08:42:58 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 6370 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 62798
82.**.**.** - - [04/May/2023:08:43:02 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 1192 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 83304
82.**.**.** - - [04/May/2023:08:43:27 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 5499 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 57474
82.**.**.** - - [04/May/2023:08:43:28 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 1180 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 64298
82.**.**.** - - [04/May/2023:08:43:34 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 6382 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 60767
82.**.**.** - - [04/May/2023:08:43:58 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 6370 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 61949
82.**.**.** - - [04/May/2023:08:44:06 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 6382 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 76152
82.**.**.** - - [04/May/2023:08:44:28 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 6370 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 62093
82.**.**.** - - [04/May/2023:08:44:38 +0200] "PROPFIND /remote.php/dav/files/First%20Name/ HTTP/1.1" 207 6382 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)" - 62854
82.**.**.** - - [04/May/2023:08:44:42 +0200] "GET /login HTTP/1.1" 500 18220 "-" "Mozilla/5.0 (Windows NT 10.0; rv:112.0) Gecko/20100101 Firefox/112.0" - 92376

$ tail error.log
[Tue May 02 09:42:21.746338 2023] [access_compat:error] [pid 6369] [client 82.:41506] AH01797: client denied by server configuration: /home/www/sites/cloud.sondages.pro/htdocs/config
[Wed May 03 16:18:32.167697 2023] [access_compat:error] [pid 9619] [client 82.
*:38424] AH01797: client denied by server configuration: /home/www/sites/cloud.sondages.pro/htdocs/config


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.

$ grep 8NZUxqGF6ILregyWz26J nextcloud.log
{"reqId":"8NZUxqGF6ILregyWz26J","level":3,"time":"2023-05-04T06:48:56+00:00","remoteAddr":"82.65.222.77","user":"Denis Chenu","app":"index","method":"GET","url":"/apps/dashboard/","message":"Call to undefined method OCA\\Talk\\Config::getDefaultPermissions() in file '/home/www/sites/cloud.sondages.pro/htdocs/apps/spreed/lib/TInitialState.php' line 95","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:112.0) Gecko/20100101 Firefox/112.0","version":"26.0.1.1","exception":{"Exception":"Exception","Message":"Call to undefined method OCA\\Talk\\Config::getDefaultPermissions() in file '/home/www/sites/cloud.sondages.pro/htdocs/apps/spreed/lib/TInitialState.php' line 95","Code":0,"Trace":[{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Call to undefined method OCA\\Talk\\Config::getDefaultPermissions()","Code":0,"Trace":[{"file":"/home/www/sites/cloud.sondages.pro/htdocs/apps/spreed/lib/TInitialState.php","line":100,"function":"publishInitialStateShared","class":"OCA\\Talk\\Files\\TemplateLoader","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/apps/spreed/lib/Files/TemplateLoader.php","line":106,"function":"publishInitialStateForUser","class":"OCA\\Talk\\Files\\TemplateLoader","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Talk\\Files\\TemplateLoader","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/EventDispatcher/EventDispatcher.php","line":99,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/apps/dashboard/lib/Controller/DashboardController.php","line":85,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Dashboard\\Controller\\DashboardController","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/www/sites/cloud.sondages.pro/htdocs/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/www/sites/cloud.sondages.pro/htdocs/apps/spreed/lib/TInitialState.php","Line":95},"CustomMessage":"--"}}

OK,

Fixed by

php8.1 occ app:disable spreed
spreed 16.0.3 disabled

Found with
grep -r "isBreakoutRoomsEnabled" *

But now : Talk is disable , i report the issue on github.