Skip to content

[Bug]: Adding or updating an item no longer works. Form just hangs with no error. Try Dev Demo #4843

Backlog

Description

@odiea

🐛 Bug Description

{title: "TypeError", type: "TypeError", code: 500,…}
code
:
500
file
:
"/app/vendor/codeigniter4/framework/system/HTTP/RequestTrait.php"
line
:
288
message
:
"CodeIgniter\HTTP\Request::fetchGlobal(): Argument #3 ($filter) must be of type ?int, bool given, called in /app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php on line 587"
title
:
"TypeError"
trace
:
[{file: "/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php", line: 587,…},…]
type
:
"TypeError"

📋 Steps to Reproduce

{title: "TypeError", type: "TypeError", code: 500,…}
code
:
500
file
:
"/app/vendor/codeigniter4/framework/system/HTTP/RequestTrait.php"
line
:
288
message
:
"CodeIgniter\HTTP\Request::fetchGlobal(): Argument #3 ($filter) must be of type ?int, bool given, called in /app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php on line 587"
title
:
"TypeError"
trace
:
[{file: "/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php", line: 587,…},…]
type
:
"TypeError"

✅ Expected Behavior

{title: "TypeError", type: "TypeError", code: 500,…}
code
:
500
file
:
"/app/vendor/codeigniter4/framework/system/HTTP/RequestTrait.php"
line
:
288
message
:
"CodeIgniter\HTTP\Request::fetchGlobal(): Argument #3 ($filter) must be of type ?int, bool given, called in /app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php on line 587"
title
:
"TypeError"
trace
:
[{file: "/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php", line: 587,…},…]
type
:
"TypeError"

📦 OpenSourcePOS Version

development (unreleased)

🔧 PHP Version

PHP 8.5

🌐 Browser(s)

Chrome

🖥️ Server Operating System

unknown

🗄️ Database

unknown

🌍 Web Server

unknown

📊 System Information Report

{title: "TypeError", type: "TypeError", code: 500,…}
code
: 
500
file
: 
"/app/vendor/codeigniter4/framework/system/HTTP/RequestTrait.php"
line
: 
288
message
: 
"CodeIgniter\\HTTP\\Request::fetchGlobal(): Argument #3 ($filter) must be of type ?int, bool given, called in /app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php on line 587"
title
: 
"TypeError"
trace
: 
[{file: "/app/vendor/codeigniter4/framework/system/HTTP/IncomingRequest.php", line: 587,…},…]
type
: 
"TypeError"

📜 Relevant Log Output

$submittedQuantities = $this->request->getPost(null, true) ?? []; is causing this issue?

📸 Screenshots

$submittedQuantities = $this->request->getPost(null, true) ?? [];

✓ Confirmation

  • I certify that this is an unmodified copy of OpenSourcePOS
  • I have searched existing issues to ensure this bug has not already been reported
  • I have provided all the information requested above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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