Skip to content

Undefined array key "optionsLimitMin" in FormsService.php #3489

Description

@MewraDev

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!

Describe the bug
Repeated PHP warnings in the server logs regarding an undefined array key "optionsLimitMin" when accessing Forms.

To Reproduce
Steps to reproduce the behavior:

Create a new form or edit an existing one.
Add a question type that allows selecting multiple options (e.g., "Checkboxes").
Access the form's submissions page or the form's configuration via the web interface.
Check the nextcloud.log file.
See the error: Undefined array key "optionsLimitMin" at /var/www/nextcloud/apps/forms/lib/Service/FormsService.php#134.

Expected behavior
The API should return the requested data without triggering PHP warnings or notices for missing array keys.

Screenshots
N/A

Nextcloud (please complete the following information):

  • Nextcloud-Version: 34.0.1.2
  • Forms-Version: 5.3.2

Desktop (please complete the following information):

  • OS: Arch
  • Browser: Firefox
  • Version: 152.0

Browser log

Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content.

[WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component. 
Object { uid: "*", app: "@nextcloud/vue", level: "2", text: undefined, ariaLabel: null, instance: {…} }
[index.mjs:44:1](webpack:///nextcloud/node_modules/@nextcloud/logger/dist/index.mjs)
[WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component. 
Object { uid: "*", app: "@nextcloud/vue", level: "2", text: undefined, ariaLabel: null, instance: {…} }
[index.mjs:44:1](webpack:///nextcloud/node_modules/@nextcloud/logger/dist/index.mjs)
Source map error: No sources are declared in this source map.
Resource URL: https://**/nextcloud/apps/firstrunwizard/js/modulepreload-polyfill-CBWYtosv.chunk.mjs
Source Map URL: modulepreload-polyfill-CBWYtosv.chunk.mjs.map
Source map error: No sources are declared in this source map.
Resource URL: https://**/nextcloud/apps/notifications/js/vite-preload-helper-DxYC2qmj.chunk.mjs
Source Map URL: vite-preload-helper-DxYC2qmj.chunk.mjs.map

Error while fetching an original source: request failed with status 404
Stack in the worker:networkRequest@resource://devtools/client/shared/source-map-loader/utils/network-request.js:43:9

Source URL: https://**/nextcloud/node_modules/@nextcloud/dialogs/dist/style.css
Error while fetching an original source: request failed with status 404
Stack in the worker:networkRequest@resource://devtools/client/shared/source-map-loader/utils/network-request.js:43:9

Source URL: https://**/nextcloud/node_modules/@nextcloud/password-confirmation/dist/style.css

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions