Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentCountError: Too few arguments to function OC\ServerContainer::getAppContainer() #4989

Closed
LEDfan opened this issue May 20, 2017 · 2 comments

Comments

@LEDfan
Copy link
Member

LEDfan commented May 20, 2017

Steps to reproduce

  1. 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}

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
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.5.1
  - calendar: 1.5.2
  - comments: 1.2.0
  - contacts: 1.5.3
  - dav: 1.3.0
  - federatedfilesharing: 1.2.0
  - federation: 1.2.0
  - files: 1.7.2
  - files_downloadactivity: 1.1.1
  - files_external: 1.3.0
  - files_pdfviewer: 1.1.1
  - files_sharing: 1.4.0
  - files_texteditor: 2.4.1
  - files_trashbin: 1.2.0
  - files_versions: 1.5.0
  - files_videoplayer: 1.1.0
  - gallery: 17.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - mail: 0.6.4
  - news: 11.0.0
  - nextcloud_announcements: 1.1
  - notes: 2.2.0
  - notifications: 2.0.0
  - password_policy: 1.2.2
  - provisioning_api: 1.2.0
  - serverinfo: 1.2.0
  - sharebymail: 1.2.0
  - spreed: 2.0.0
  - survey_client: 1.0.0
  - systemtags: 1.2.0
  - tasks: 0.9.5
  - theming: 1.3.0
  - twofactor_backupcodes: 1.1.0
  - twofactor_totp: 1.3.0
  - updatenotification: 1.2.0
  - user_external: 0.4
  - workflowengine: 1.2.0
Disabled:
  - admin_audit
  - encryption
  - external
  - firstrunwizard
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "oc971b311343434349a1",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "xx.be"
        ],
        "datadirectory": "\/srv\/xxx.be\/data",
        "dbtype": "mysql",
        "version": "12.0.0.16",
        "dbname": "nextcloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "theme": "",
        "maintenance": false,
        "maxZipInputSize": 0,
        "allowZipDownload": true,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "app.mail.server-side-cache.enabled": true,
        "trashbin_retention_obligation": "auto",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379,
            "timeout": 0,
            "dbindex": 0
        },
        "preview_max_scale_factor": 1,
        "enabledPreviewProviders": {
            "0": "OC\\Preview\\PNG",
            "1": "OC\\Preview\\JPEG",
            "2": "OC\\Preview\\GIF",
            "11": "OC\\Preview\\Illustrator",
            "12": "OC\\Preview\\Postscript",
            "13": "OC\\Preview\\Photoshop",
            "14": "OC\\Preview\\TIFF"
        },
        "singleuser": false,
        "htaccess.RewriteBase": "\/",
        "overwrite.cli.url": "https:\/\/xxx.be",
        "appstore.experimental.enabled": true,
        "loglevel": 2,
        "updater.release.channel": "beta",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

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
Nothing related

Nextcloud log (data/nextcloud.log)

Nextcloud log See above.

Browser log

Browser log
JQMIGRATE: Migrate is installed, version 1.4.0
@MorrisJobke
Copy link
Member

Fried by #4980

Sorry for this :/

@LEDfan
Copy link
Member Author

LEDfan commented May 20, 2017

Thanks, that solves it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants