Nextcloud version: 17.0.3
Operating system and version: Ubuntu 18.04.4 LTS
Apache version: Apache 2.4.29
PHP version: 7.2
The issue you are facing:
After I installed and enabled the Talk-Plugin (https://apps.nextcloud.com/apps/spreed), I see only a loading wheel in the Nextcloud-UI.
In the nextcloud error log I see the following exception:
app: 'no app in context'
method: GET
url: /ocs/v2.php/apps/spreed/api/v1/room
message:
Exception: Exception
Message: "Argument 13 \npassed to OCA\\Spreed\\Room::__construct() must be of the type string, null given, called in /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Manager.php on line 161"
Code: 0
Trace:
-
file: "/srv/www/xxxxxx/nextcloud-17.0.3/lib/private/Ap\npFramework/App.php"
line: 126
function: dispatch
class: OC\AppFramework\Http\Dispatcher
type: '->'
args: [{__class__: OCA\Spreed\Controller\RoomController}, getRooms]
-
file: "/srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/Ro\nuting/RouteActionHandler.php"
line: 47
function: main
class: OC\AppFramework\App
type: '::'
args: [OCA\Spreed\Controller\RoomController, getRooms, {__class__: OC\AppFramework\DependencyInjection\DIContainer}, {apiVersion: v1, _route: "ocs.spreed.Roo\nm.getRooms"}]
-
function: __invoke
class: OC\AppFramework\Routing\RouteActionHandler
type: '->'
args: [{apiVersion: v1, _route: ocs.spreed.Room.getRooms}]
-
file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/Route/Router.php
line: 297
"f\nunction": call_user_func
args: [{__class__: OC\AppFramework\Routing\RouteActionHandler}, {apiVersion: v1, _route: ocs.spreed.Room.getRooms}]
-
file: /srv/www/xxxxxx/nextcloud-17.0.3/ocs/v1.php
line: 82
function: match
class: "OC\\Route\\Ro\nuter"
type: '->'
args: [/ocsapp/apps/spreed/api/v1/room]
-
file: /srv/www/xxxxxx/nextcloud-17.0.3/ocs/v2.php
line: 24
args: [/srv/www/xxxxxx/nextcloud-17.0.3/ocs/v1.php]
function: require_once
File: "/srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/Http/Dispatcher.php"
Line: 109
Previous:
Exception: TypeError
Message: "Argument 13 passed to OCA\\Spreed\\Room::__construct() must be of the type string, null given, called in /srv/www/xxxxxx/nextcl\noud-17.0.3/apps/spreed/lib/Manager.php on line 161"
Code: 0
Trace:
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Manager.php, line: 161, function: __construct, class: OCA\Spreed\Room, type: '->', args: [{__class__: "OCA\\Spreed\\M\nanager"}, {__class__: OC\DB\OracleConnection}, {__class__: OC\Security\SecureRandom}, {__class__: OC\EventDispatcher\SymfonyAdapter}, {__class__: OC\AppFramework\Utility\TimeFactory}, {__class__: OC\Security\Hasher}, 105, 4, 0, 0, zcao2uy4, "*** sensitive p\narameter replaced ***", null, 0, null, null, 0, null, null, "", ""]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Manager.php, line: 370, function: createRoomObject, class: OCA\Spreed\Manager, type: '->', args: [{id: '105', name: "*** sensitive \nparameter replaced ***", token: zcao2uy4, type: '4', password: null, active_since: null, active_guests: '0', last_activity: null, last_message: '0', object_type: null, object_id: null, read_only: '0', lobby_state: '0', lobby_timer: null}]}
- {file: "/srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Manager.php", line: 617, function: getRoomById, class: OCA\Spreed\Manager, type: '->', args: [105]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Manager.php, line: 572, function: createRoom, class: OCA\Spreed\Manager, type: '->', args: [4, '*** sensitive parameter replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Chat/Changelog/Manager.php, line: 66, function: getChangelogRoom, class: OCA\Spreed\Manager, type: '->', args: ['*** sensitive parameter replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Chat/Changelog/Listener.php, line: 53, function: updateChangelog, class: OCA\Spreed\Chat\Changelog\Manager, type: '->', args: ['*** sensitive parameters replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Chat/Changelog/Listener.php, line: 37, function: preGetRooms, class: OCA\Spreed\Chat\Changelog\Listener, type: '->', args: ['*** sensitive parameter replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/3rdparty/symfony/event-dispatcher/EventDispatcher.php, line: 212, function: 'OCA\Spreed\Chat\Changelog\{closure}', class: OCA\Spreed\Chat\Changelog\Listener, type: '::', args: ['*** sensitive parameters replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/3rdparty/symfony/event-dispatcher/EventDispatcher.php, line: 44, function: doDispatch, class: Symfony\Component\EventDispatcher\EventDispatcher, type: '->', args: [[{__class__: Closure}], '*** sensitive parameter replaced ***', '*** sensitive parameter replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/EventDispatcher/SymfonyAdapter.php, line: 59, function: dispatch, class: Symfony\Component\EventDispatcher\EventDispatcher, type: '->', args: ['*** sensitive parameter replaced ***', '*** sensitive parameter replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Controller/RoomController.php, line: 114, function: dispatch, class: OC\EventDispatcher\SymfonyAdapter, type: '->', args: ['*** sensitive parameter replaced ***', '*** sensitive parameter replaced ***']}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/Http/Dispatcher.php, line: 170, function: getRooms, class: OCA\Spreed\Controller\RoomController, type: '->', args: []}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/Http/Dispatcher.php, line: 99, function: executeController, class: OC\AppFramework\Http\Dispatcher, type: '->', args: [{__class__: OCA\Spreed\Controller\RoomController}, getRooms]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/App.php, line: 126, function: dispatch, class: OC\AppFramework\Http\Dispatcher, type: '->', args: [{__class__: OCA\Spreed\Controller\RoomController}, getRooms]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/Routing/RouteActionHandler.php, line: 47, function: main, class: OC\AppFramework\App, type: '::', args: [OCA\Spreed\Controller\RoomController, getRooms, {__class__: OC\AppFramework\DependencyInjection\DIContainer}, {apiVersion: v1, _route: ocs.spreed.Room.getRooms}]}
- {function: __invoke, class: OC\AppFramework\Routing\RouteActionHandler, type: '->', args: [{apiVersion: v1, _route: ocs.spreed.Room.getRooms}]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/Route/Router.php, line: 297, function: call_user_func, args: [{__class__: OC\AppFramework\Routing\RouteActionHandler}, {apiVersion: v1, _route: ocs.spreed.Room.getRooms}]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/ocs/v1.php, line: 82, function: match, class: OC\Route\Router, type: '->', args: [/ocsapp/apps/spreed/api/v1/room]}
- {file: /srv/www/xxxxxx/nextcloud-17.0.3/ocs/v2.php, line: 24, args: [/srv/www/xxxxxx/nextcloud-17.0.3/ocs/v1.php], function: require_once}
File: /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Room.php
Line: 108
CustomMessage: '--'
userAgent: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0'
version: 17.0.3.1
Is this the first time you’ve seen this error? Y
Steps to replicate it:
- Enable Talk-Plugin from Nextcloud APP Store or via OCC (app:install spreed)
- Click on the Talk-Icon in the Nextcloud-Webinterface.
The output of your Nextcloud log in Admin > Logging:
[no app in context] Error: Exception: Argument 13 passed to OCA\Spreed\Room::__construct() must be of the type string, null given, called in /srv/www/xxxxxx/nextcloud-17.0.3/apps/spreed/lib/Manager.php on line 161 at <<closure>>
0. /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/App.php line 126
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Spreed\Controller\RoomController {}, "getRooms")
1. /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main("OCA\\Spreed\\Controller\\RoomController", "getRooms", OC\AppFramework\ ... {}, {apiVersion: "v1 ... "})
2. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke({apiVersion: "v1 ... "})
3. /srv/www/xxxxxx/nextcloud-17.0.3/lib/private/Route/Router.php line 297
undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {apiVersion: "v1 ... "})
4. /srv/www/xxxxxx/nextcloud-17.0.3/ocs/v1.php line 82
OC\Route\Router->match("/ocsapp/apps/spreed/api/v1/room")
5. /srv/www/xxxxxx/nextcloud-17.0.3/ocs/v2.php line 24
undefinedundefinedrequire_once("/srv/www/XXX ... p")
GET /ocs/v2.php/apps/spreed/api/v1/room
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'objectstore' =>
array (
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'bucket' => 'XXX',
'autocreate' => true,
'key' => 'XXX',
'secret' => 'XXX',
'hostname' => 'XXX',
'port' => XXX,
'use_ssl' => true,
'use_path_style' => true,
),
),
'supportedDatabases' =>
array (
0 => 'oci',
),
'instanceid' => 'XXX',
'passwordsalt' => 'XXX',
'secret' => 'XXX',
'trusted_domains' =>
array (
0 => 'XXX',
1 => 'XXX',
2 => 'XXX',
),
'datadirectory' => '/srv/www/XXX/data',
'overwrite.cli.url' => 'https://XXX',
'dbtype' => 'oci',
'version' => '17.0.3.1',
'dbname' => 'XXX',
'dbhost' => 'XXX',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbtablespace' => 'XXX',
'dbuser' => 'XXX',
'dbpassword' => 'XXX',
'installed' => true,
'mail_from_address' => 'XXX',
'mail_smtpmode' => 'smtp',
'mail_domain' => 'XXX',
'mail_smtphost' => 'localhost',
'mail_smtpport' => '25',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'XXX',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Memcached',
'proxy' => 'XXX',
'trusted_proxies' =>
array (
0 => 'XXX',
),
'maintenance' => false,
'loglevel' => 2,
'trashbin_retention_obligation' => '1, 2',
'versions_retention_obligation' => '1, 2',
);