-
Notifications
You must be signed in to change notification settings - Fork 8
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
Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array #45
Comments
Could you please explain what you mean by "using the action tag field" ? |
Also please report your PHP version. |
Hi @BHDIdata redcap-pdf-injector/pdfInjector.php Lines 312 to 314 in 6a249ba
Could you please compare the user's rights that you encounter the error with, and report back if there is anything different regarding access on that specific project and form? It is a bug for sure! Thanks :) |
@BHDIdata The second issue with the thumbnail seems to be a problem in JavaScript. Could you please open the Developer Tools of your browser and check if there are any red messages (errors?) Please also ensure, that in Module settings the option "Debug" is enabled. |
Ahh interesting, I realised that my admin account was not actually added to the permissions of the project, since as an admin I rarely need to be. Adding my admin account to the project with permissions has allowed me to access the injected pdf using the action tag button inside the instrument. However, the javascript button and thumbnail still do not activate I've refreshed the page and opened the console, this error appears when clicking the button: record_home.php?pid=1093&arm=1&id=ELF_001:128 In this project, "ELF_001" is the name of the first record, implemented by a module "Custom Record Auto-numbering - v1.0.6" by Luke Stevens (Murdoch Children's Research Institute) |
Issue reported by user on REDCap Community:
"I've encountered an error with the module I was hoping you could help with.
The issue occurs when trying to open the injected PDF using the action tag field.
Also, when trying to open the pdf from the record home page nothing happens.
REDCap Version 14.0.33
PDF Injector - v3.1.0
REDCap crashed due to an unexpected PHP fatal error!
Error message: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in modules\pdf_injector_v3.1.0\pdfInjector.php:314 Stack trace: #0 modules\pdf_injector_v3.1.0\pdfInjector.php(314): array_filter() #1 modules\pdf_injector_v3.1.0\preview.php(13): STPH\pdfInjector\pdfInjector->renderInjection() #2 redcap_v14.0.33\ExternalModules\index.php(146): require('...') #3 {main} thrown
File: modules\pdf_injector_v3.1.0\pdfInjector.php
Line: 314"
Source:
https://redcap.vumc.org/community/post.php?id=108925&comment=235866
The text was updated successfully, but these errors were encountered: