-
Notifications
You must be signed in to change notification settings - Fork 189
Untitled #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Untitled #1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samirdas
pushed a commit
that referenced
this pull request
Sep 25, 2015
make utility function use factory for DB and fix unittest
stellarxo
referenced
this pull request
in stellarxo/Loris
May 9, 2016
Code for Enrollment Statistics Report
AnyhowStep
added a commit
to AnyhowStep/Loris
that referenced
this pull request
May 24, 2017
ZainVirani
referenced
this pull request
in ZainVirani/Loris
Jun 2, 2017
Fixed user project multi-select display
llevitis
pushed a commit
to llevitis/Loris
that referenced
this pull request
Jul 10, 2017
[modules] added module name to the 'Clinical' menu (source 0000-00-02-Menus.sql)
driusan
pushed a commit
that referenced
this pull request
Dec 1, 2022
This fixes the error: ``` <b>Fatal error</b>: Uncaught TypeError: ValidatableIdentifier::__construct(): Argument #1 ($value) must be of type string, int given, called in /var/www/loris/modules/behavioural_qc/php/models/incompletedto.class.inc on line 126 ``` when the module is run on PHP 8.1.
CamilleBeau
pushed a commit
to CamilleBeau/Loris
that referenced
this pull request
Dec 5, 2022
…tion update 2021 07 27 diagnosis evolution
driusan
added a commit
that referenced
this pull request
Nov 24, 2023
This fixes 2 problems with loading the publication module on Raisinbread: 1. When trying to load the page, I get the error: <b>Deprecated</b>: htmlspecialchars_decode(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/home/driusan/Code/Loris/modules/publication/php/publication.class.inc</b> on line <b>304</b><br /> with PHP 8.2. 2. The Form.js imports were missing.
driusan
added a commit
that referenced
this pull request
Dec 12, 2023
Fix the warnings: ``` <b>Deprecated</b>: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in <b>modules/instrument_list/php/instrument_list_controlpanel.class.inc</b> on line <b>475</b><br /> <br /> <b>Deprecated</b>: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in <b>modules/instrument_list/php/instrument_list_controlpanel.class.inc</b> on line <b>514</b><br /> ``` in PHP 8.2 and above.
1 task
driusan
pushed a commit
that referenced
this pull request
Apr 4, 2024
Fixes error on statistics page: ``` [CRITICAL] /var/www/Loris/php/libraries/User.class.inc:476: Uncaught TypeError: User::hasProject(): Argument #1 ($projectID) must be of type ProjectID, string given, called in /var/www/Loris/modules/statistics/php/statistics_site.class.inc on line 134 and defined in /var/www/Loris/php/libraries/User.class.inc:476 ``` Fixes #9137
Merged
driusan
pushed a commit
that referenced
this pull request
Aug 27, 2024
…www/loris/tools/generic_includes.php on line 28" - 26 branch (#9317) This fixes the script generic_includes.php that calls the $DB variable before it is defined when calling LorisInstance. Without this fix, anything calling generic_includes.php will trigger the following error: ``` Undefined variable in /var/www/loris/tools/generic_includes.php on line 28 PHP Fatal error: Uncaught TypeError: LORIS\\LorisInstance::__construct(): Argument #1 ($db) must be of type Database, null given, called in /var/www/loris/tools/generic_includes.php on line 27 ```
driusan
pushed a commit
that referenced
this pull request
Oct 1, 2024
…www/loris/tools/generic_includes.php on line 28" - 25 branch (#9318) This fixes the script `generic_includes.php` that calls the $DB variable before it is defined when calling LorisInstance. Without this fix, anything calling `generic_includes.php` will trigger the following error: ``` Undefined variable in /var/www/loris/tools/generic_includes.php on line 28 PHP Fatal error: Uncaught TypeError: LORIS\\LorisInstance::__construct(): Argument #1 ($db) must be of type Database, null given, called in /var/www/loris/tools/generic_includes.php on line 27 ```
This was referenced Nov 14, 2024
Closed
driusan
pushed a commit
that referenced
this pull request
Nov 26, 2024
Fix type error in assign_missing_instruments.php ``` PHP Fatal error: Uncaught TypeError: LORIS\StudyEntities\Candidate\ValidatableIdentifier::__construct(): Argument #1 ($value) must be of type string, int given, called in /var/www/Loris/tools/assign_missing_instruments.php on line 94 and defined in /var/www/Loris/src/StudyEntities/Candidate/ValidatableIdentifier.php:59] ```
This was referenced Feb 21, 2025
This was referenced Feb 25, 2025
driusan
pushed a commit
that referenced
this pull request
Mar 11, 2025
PHP Fatal error: Uncaught TypeError: Project::getProjectFromID(): Argument #1 ($projectID) must be of type ProjectID, int given, called
driusan
pushed a commit
that referenced
this pull request
Apr 11, 2025
This fixes the following errors when running the tool `fix_timepoint_date_problems.php` ``` PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, LORIS\StudyEntities\Candidate\CandID given in /var/www/Loris/tools/fix_timepoint_date_problems.php:157 Stack trace: #0 /var/www/Loris/tools/fix_timepoint_date_problems.php(157): preg_match() #1 {main} thrown in /var/www/Loris/tools/fix_timepoint_date_problems.php on line 157 ``` ``` PHP Fatal error: Uncaught TypeError: checkdate(): Argument #1 ($month) must be of type int, string given in /var/www/Loris/tools/fix_timepoint_date_problems.php:519 Stack trace: #0 /var/www/Loris/tools/fix_timepoint_date_problems.php(519): checkdate() #1 /var/www/Loris/tools/fix_timepoint_date_problems.php(244): fixDate() #2 {main} thrown in /var/www/Loris/tools/fix_timepoint_date_problems.php on line 519 ``` ``` PHP Warning: Undefined variable $db in /var/www/Loris/php/libraries/NDB_BVL_Feedback.class.inc on line 717 PHP Fatal error: Uncaught Error: Call to a member function pselectOne() on null in /var/www/Loris/php/libraries/NDB_BVL_Feedback.class.inc:717 Stack trace: #0 /var/www/Loris/tools/fix_timepoint_date_problems.php(553): NDB_BVL_Feedback->createThread() #1 /var/www/Loris/tools/fix_timepoint_date_problems.php(244): fixDate() #2 {main} thrown in /var/www/Loris/php/libraries/NDB_BVL_Feedback.class.inc on line 717 ```
1 task
driusan
pushed a commit
that referenced
this pull request
Dec 3, 2025
The REDcap "radio option" sometimes includes no index and, in this case, a decimal (float) causing redcap2linst show the following error: PHP Fatal error: Uncaught DomainException: Could not parse radio option: '0.01 ' in /var/www/loris/project/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc:316 Stack trace: #0 /var/www/loris/project/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc(268): LORIS\redcap\client\models\RedcapDictionaryRecord->_optionsToLINST() #1 /var/www/loris/project/tools/redcap2linst.php(74): LORIS\redcap\client\models\RedcapDictionaryRecord->toLINST() #2 {main} thrown in /var/www/loris/project/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc on line 316 the fetch was 0.01 | 0.05 | 0.10 | 0.15 without indices, But this code fixes it
This pull request was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added an extra helper function to utility class which I think is useful for other projects.