-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Nidhi Jethoo reports:
From: CTSI REDCap Module Support on behalf of Jethoo, Nidhi
Date: Monday, January 20, 2025 at 10:57 AM
To: xxxxx
Subject: The 'auto_populate_fields' module threw the following exception when calling the hook method 'redcap_every_page_top':
We use the module developed by you in couple of projects and we occasionally get these errors from projects using auto_populate_fields module.I am not sure what could be wrong and what are the implications of this error?
The 'auto_populate_fields' module threw the following exception when calling the hook method 'redcap_every_page_top':
Error: Undefined constant "USERID" in /var/www/html/redcap/redcap_v14.0.42/Classes/Piping.php:1434
Stack trace:
#0 /var/www/html/redcap/redcap_v14.0.42/Classes/DataEntry.php(6534): Piping::pipeSpecialTags()
#1 /var/www/html/redcap/modules/auto_populate_fields_v2.6.5/ExternalModule.php(291): DataEntry::getBranchingFields()
#2 /var/www/html/redcap/modules/auto_populate_fields_v2.6.5/ExternalModule.php(43): AutoPopulateFields\ExternalModule\ExternalModule->setDefaultWhenVisible()
#3 /var/www/html/redcap/redcap_v14.0.42/ExternalModules/classes/ExternalModules.php(3180): AutoPopulateFields\ExternalModule\ExternalModule->redcap_every_page_top()
#4 /var/www/html/redcap/redcap_v14.0.42/ExternalModules/classes/ExternalModules.php(3347): ExternalModules\ExternalModules::startHook()
#5 /var/www/html/redcap/redcap_v14.0.42/ExternalModules/classes/ExternalModules.php(3380): ExternalModules\ExternalModules::ExternalModules{closure}()
#6 /var/www/html/redcap/redcap_v14.0.42/Classes/Hooks.php(41): ExternalModules\ExternalModules::callHook()
#7 /var/www/html/redcap/redcap_v14.0.42/Classes/HtmlPage.php(150): Hooks::call()
#8 /var/www/html/redcap/redcap_v14.0.42/Config/init_functions.php(656): HtmlPage->PrintHeader()
#9 /var/www/html/redcap/redcap_v14.0.42/Libraries/PEAR/Auth.php(587): loginFunction()
#10 /var/www/html/redcap/redcap_v14.0.42/Libraries/PEAR/Auth.php(530): Auth->login()
#11 /var/www/html/redcap/redcap_v14.0.42/Classes/Authentication.php(1866): Auth->start()
#12 /var/www/html/redcap/redcap_v14.0.42/Classes/Authentication.php(901): Authentication::checkLogin()
#13 /var/www/html/redcap/redcap_v14.0.42/Classes/Authentication.php(654): Authentication::tableBasedLogin()
#14 /var/www/html/redcap/redcap_v14.0.42/Classes/System.php(966): Authentication::authenticate()
#15 /var/www/html/redcap/redcap_v14.0.42/Config/init_project.php(7): System::initProjectPage()
#16 /var/www/html/redcap/redcap_v14.0.42/DataEntry/index.php(6): require_once('...')
#17 {main}URL: https://#########/redcap/redcap_v14.0.42/DataEntry/index.php?pid=#####&instance=1&page=canada_only&id=#####&event_id=1730
Server: ########## (########)
User:
Project ID: #####
Module Name: Auto Populate Fields (auto_populate_fields)
Module Author(s): xxxxxxxxxx
Run Time: 0 seconds