Skip to content

Type error on REDCap test DET button #9895

@MaximeBICMTL

Description

@MaximeBICMTL

Problem

We noticed this error on the C-BIG port of the REDCap module. We get a type error when using the "Test" button on the REDCap DET. The reason seems to be that REDCap sends empty data to LORIS, which the module does not handle.

[Mon Jul 07 09:51:08.537544 2025] [php:notice] [pid 856230:tid 856230] [client 192.168.122.1:59502] [redcap] Unknown exception LORIS\\redcap\\client\\models\\RedcapNotification::__construct(): Argument #1 ($props) must be of type array, null given, called in /var/www/loris/project/modules/redcap/php/endpoints/notifications.class.inc on line 114 

Solution

Gracefully return on empty data.

Metadata

Metadata

Labels

Category: BugPR or issue that aims to report or fix a bugDifficulty: SimplePR or issue that should be easy to implement, review, or testModule: redcapPR or issue related to redcap module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions