Skip to content

Enhancements for Support for PHP 8 and REDCap v15

Latest

Choose a tag to compare

@alanisem123 alanisem123 released this 16 Jan 20:08
3c17ea8

Bug Fix: A change in the REDCap core code mistakenly removed the button for uploading reports to Lab Archives. The external module was using a check for determining the authentication status and displaying the upload button. It was checking a global variable that REDCap is no longer using on REDCap v15.0.25 LTS, and thus, its check was failing. The method being used for this purpose was modified to use a PHP function session_status and it successfully fixed the issue. The button for uploading reports to Lab Archives is now available on the report page, as expected.
Bug Fix: an exception was being thrown when the user log out, or in, on a report page. A check is now being made to ensure the session is active before any additional check is performed.
Bug Fix: Fixing exception for not finding $user_rights global on prod.
Bug Fix: Fixing PHP 8 issue by not finding the REDCap constant called USERID. It is now being retrieve from the global user_rights. Updating Lab Archives call to user_account_info as it was modified late 2023.
Enhancement: Adding compatibility with PHP 8