Skip to content

500 Internal error while creating the team folder #4440

@nabim777

Description

@nabim777

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Navigate to Administration settings > Team foldes
  2. Try to create a folder named groupFolder

Expected behaviour

The folder groupFolder should be created successfully.

Actual behaviour

The folder is not created.
A 500 Internal Server Error is returned.

Error Response

{
    "message": "An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR:  syntax error at or near \")\"\nLINE 1: ..., \"etag\" = $2 WHERE (\"storage\" = $3) AND (\"path_hash\" IN ())\n                                                                     ^"
}

Server configuration

Operating system:

Web server:

Database:

PHP version: 8.3

Nextcloud version: (see Nextcloud admin page) 31.0.14

Team folders version: 19.1.17

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Are you using external storage, if yes which one: local/s3/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"6mCQ3NSKHpPNdhAMwsMX","level":2,"time":"2026-02-20T06:39:48+00:00","remoteAddr":"172.19.0.5","user":"admin","app":"PHP","method":"POST","url":"/index.php/apps/groupfolders/folders","scriptName":"/index.php","message":"Undefined array key 7 at /var/www/html/lib/private/AppFramework/Http.php#106","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.14.1","data":{"app":"PHP"}}

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions