You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do something in NC which uses OC\ServerContainer::getAppContainer() and/or ArgumentCountError: Too few arguments to function OC\ServerContainer::query()
Expected behaviour
The function should not throw an error.
Actual behaviour
The following error is thrown:
ArgumentCountError: Too few arguments to function OC\ServerContainer::getAppContainer(), 1 passed in /srv/some-domain.be/www/lib/private/ServerContainer.php on line 124 and exactly 2 expected
/srv/some-domain.be/www/lib/private/ServerContainer.php - line 124: OC\ServerContainer->getAppContainer('settings')
/srv/some-domain.be/www/lib/private/Activity/Manager.php - line 400: OC\ServerContainer->query('OC\\Settings\\Act...')
/srv/some-domain.be/www/apps/activity/lib/Settings/Admin.php - line 64: OC\Activity\Manager->getSettings()
/srv/some-domain.be/www/settings/Controller/AdminSettingsController.php - line 88: OCA\Activity\Settings\Admin->getForm()
/srv/some-domain.be/www/settings/Controller/AdminSettingsController.php - line 73: OC\Settings\Controller\AdminSettingsController->getSettings('activity')
[internal function] OC\Settings\Controller\AdminSettingsController->index('activity')
/srv/some-domain.be/www/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/srv/some-domain.be/www/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\AdminSettingsController), 'index')
/srv/some-domain.be/www/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\AdminSettingsController), 'index')
/srv/some-domain.be/www/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OC\\Settings\\Con...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/srv/some-domain.be/www/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/srv/some-domain.be/www/lib/base.php - line 1000: OC\Route\Router->match('/settings/admin...')
/srv/some-domain.be/www/index.php - line 40: OC handleRequest()
{main}
and when adding a calendar item:
/srv/some-domain.be/www/lib/private/ServerContainer.php - line 124: OC\ServerContainer->getAppContainer('settings')
/srv/some-domain.be/www/lib/private/Activity/Manager.php - line 400: OC\ServerContainer->query('OC\\Settings\\Act...')
/srv/some-domain.be/www/lib/private/Activity/Manager.php - line 420: OC\Activity\Manager->getSettings()
/srv/some-domain.be/www/apps/activity/lib/UserSettings.php - line 132: OC\Activity\Manager->getSettingById('calendar_event')
/srv/some-domain.be/www/apps/activity/lib/UserSettings.php - line 67: OCA\Activity\UserSettings->getDefaultFromSetting('stream', 'calendar_event')
/srv/some-domain.be/www/apps/activity/lib/Consumer.php - line 67: OCA\Activity\UserSettings->getUserSetting('ledfan', 'stream', 'calendar_event')
/srv/some-domain.be/www/lib/private/Activity/Manager.php - line 192: OCA\Activity\Consumer->receive(Object(OC\Activity\Event))
/srv/some-domain.be/www/apps/dav/lib/CalDAV/Activity/Backend.php - line 412: OC\Activity\Manager->publish(Object(OC\Activity\Event))
/srv/some-domain.be/www/apps/dav/lib/AppInfo/Application.php - line 183: OCA\DAV\CalDAV\Activity\Backend->onTouchCalendarObject('object_add_even...', Array, Array, Array)
[internal function] OCA\DAV\AppInfo\Application->OCA\DAV\AppInfo\{closure}(Object(Symfony\Component\EventDispatcher\GenericEvent), '\\OCA\\DAV\\CalDAV...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
/srv/some-domain.be/www/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 174: call_user_func(Object(Closure), Object(Symfony\Component\EventDispatcher\GenericEvent), '\\OCA\\DAV\\CalDAV...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
/srv/some-domain.be/www/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 43: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, '\\OCA\\DAV\\CalDAV...', Object(Symfony\Component\EventDispatcher\GenericEvent))
/srv/some-domain.be/www/apps/dav/lib/CalDAV/CalDavBackend.php - line 973: Symfony\Component\EventDispatcher\EventDispatcher->dispatch('\\OCA\\DAV\\CalDAV...', Object(Symfony\Component\EventDispatcher\GenericEvent))
/srv/some-domain.be/www/3rdparty/sabre/dav/lib/CalDAV/Calendar.php - line 201: OCA\DAV\CalDAV\CalDavBackend->createCalendarObject('1', 'Nextcloud-GJQUS...', 'BEGIN VCALENDAR...')
/srv/some-domain.be/www/3rdparty/sabre/dav/lib/DAV/Server.php - line 1095: Sabre\CalDAV\Calendar->createFile('Nextcloud-GJQUS...', 'BEGIN VCALENDAR...')
/srv/some-domain.be/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile('calendars/ledfa...', 'BEGIN VCALENDAR...', NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/srv/some-domain.be/www/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/srv/some-domain.be/www/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PUT', Array)
/srv/some-domain.be/www/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/srv/some-domain.be/www/apps/dav/lib/Server.php - line 253: Sabre\DAV\Server->exec()
/srv/some-domain.be/www/apps/dav/appinfo/v2/remote.php - line 33: OCA\DAV\Server->exec()
/srv/some-domain.be/www/remote.php - line 162: require_once('/srv/c.ledfan.b...')
{main}
Steps to reproduce
OC\ServerContainer::getAppContainer()
and/orArgumentCountError: Too few arguments to function OC\ServerContainer::query()
Expected behaviour
The function should not throw an error.
Actual behaviour
The following error is thrown:
and when adding a calendar item:
Server configuration
Operating system: Centos 7.3
Web server: Apache 2.4.6
Database: Mariadb (Ver 15.1 Distrib 5.5.52-MariaDB)
PHP version: 7.1.3
Nextcloud version: Nextcloud 12 beta 1
Updated from an older Nextcloud/ownCloud or fresh install: updated from ownCloud 6 or something like that 😄
Where did you install Nextcloud from: From the tarball
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Firefox 52.1.0 and Chrome 58.0.3029.96
Operating system: openSUSE Leap 42.2
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
See above.Browser log
Browser log
The text was updated successfully, but these errors were encountered: