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

[Bug]: ($userId) must be of type string, null given #1356

Open
6 of 9 tasks
Hardexit opened this issue Dec 6, 2024 · 0 comments
Open
6 of 9 tasks

[Bug]: ($userId) must be of type string, null given #1356

Hardexit opened this issue Dec 6, 2024 · 0 comments

Comments

@Hardexit
Copy link

Hardexit commented Dec 6, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

When the map is called up, this error message appears immediately.

Steps to reproduce

Open the maps app within Nextcloud

Expected behavior

The map is displayed

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

Other

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install of the server?

Updated from a minor version (ex. 22.2.3 to 22.2.4)

Is this bug present after an update or on a fresh install of the app?

Updated from a minor version

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "mmmbox.mmmgroup.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "\/home\/mmmbox_skeleton",
        "tempdirectory": "\/home\/mmmbox_tmp",
        "dbtype": "mysql",
        "version": "30.0.3.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "installed": true,
        "loglevel": 2,
        "logdateformat": "d.m.Y H:i:s",
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 10485760,
        "maintenance": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "forcessl": true,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "ldapUserCleanupInterval": 51,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "overwrite.cli.url": "https:\/\/mmmbox.mmmgroup.com",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "default_language": "de",
        "default_locale": "de",
        "default_phone_region": "de",
        "trashbin_retention_obligation": "auto, 60",
        "versions_retention_obligation": "auto, 120",
        "defaultapp": "apporder",
        "simpleSignUpLink": "false",
        "activity_expire_days": "90",
        "updater.release.channel": "stable",
        "maintenance_window_start": 1
    }
}

List of activated Apps

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.3
  - approval: 2.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - forms: 4.3.4
  - groupfolders: 18.0.7
  - impersonate: 1.17.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - maps: 1.5.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - quota_warning: 1.20.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - twofactor_webauthn: 2.0.0
  - updatenotification: 1.20.0
  - user_ldap: 1.21.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - bruteforcesettings: 3.0.0 (installed 2.0.1)
  - encryption: 2.18.0
  - files_external: 1.22.0 (installed 0.5.2)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - firstrunwizard: 3.0.0 (installed 1.0)
  - polls: 7.2.5 (installed 7.2.5)
  - recommendations: 3.0.0 (installed 0.4.0)
  - richdocuments: 8.5.2 (installed 8.5.2)
  - support: 2.0.0 (installed 1.3.0)
  - suspicious_login: 8.0.0
  - twofactor_admin: 4.7.1 (installed 4.7.1)
  - weather_status: 1.10.0 (installed 1.0.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"iYxcVlO17MYonlqi73bZ","level":3,"time":"2024-12-06T08:16:03+01:00","remoteAddr":"212.211.191.216","user":"--","app":"index","method":"GET","url":"/apps/maps/","message":"OCA\\Maps\\Controller\\PageController::__construct(): Argument #6 ($userId) must be of type string, null given","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0","version":"30.0.3.2","exception":{"Exception":"TypeError","Message":"OCA\\Maps\\Controller\\PageController::__construct(): Argument #6 ($userId) must be of type string, null given","Code":0,"Trace":[{"function":"__construct","class":"OCA\\Maps\\Controller\\PageController","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/AppFramework/Utility/SimpleContainer.php","line":61,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":451,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":423,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/AppFramework/App.php","line":140,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/mmmbox.mmmgroup.com/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/mmmbox.mmmgroup.com/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/mmmbox.mmmgroup.com/apps/maps/lib/Controller/PageController.php","Line":25,"message":"OCA\\Maps\\Controller\\PageController::__construct(): Argument #6 ($userId) must be of type string, null given","exception":[],"CustomMessage":"OCA\\Maps\\Controller\\PageController::__construct(): Argument #6 ($userId) must be of type string, null given"},"id":"6752aa3a1b150"}

Browser Console

Additional info

Btw, i use php8.2 but i cant select it.

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

No branches or pull requests

1 participant