Hello REDCap Experts,
I've just finished containerizing our REDCap instance for production deployment, but for some reason it's not possible to create a project by uploading an XML- regardless of whether it's just metadata or includes records- everything else is green in the configuration check.
There's not much as far as logging, so here's all the information I get:
---//
REDCap crashed due to an unexpected PHP fatal error!
Error message: Uncaught Error: Data must be loaded before reading in redcap_v14.0.0/Classes/ODM.php:2462
Stack trace:
#0 redcap_v14.0.0/Classes/ODM.php(2462): XMLReader->read()
#1 redcap_v14.0.0/Classes/ODM.php(1612): ODM::validateOdmInitial('<?xml version="...')
#2 redcap_v14.0.0/ProjectGeneral/create_project.php(1082): ODM::parseOdm('<?xml version="...')
#3 {main}
thrown
File: redcap_v14.0.0/Classes/ODM.php
Line: 2462
---//
I wonder whether it's a missing package somewhere in the Dockerfile, but everything else seems to work... you can still create and save projects if they're from scratch. Additionally, this does not happen when I run REDCap in Debian/ Ubuntu WSL2 on Windows.
I based my containerization off of this
repository, but removed things like Mailhog and most variable customization. Here is the
Dockerfile - I would say my file is almost the same, aside from doing away with most environment variables for our deployment.
Does anyone have experience with a similar/ the same issue and/or have a thought as to what would cause this? Any help would be appreciated