When doing an import on REDCap 15.0.15, an error will be shown:
REDCap crashed due to an unexpected PHP fatal error!
Error message: Uncaught Error: Class "Vanderbilt\DataQualityExternalModule\UserRights" not found in modules\data_quality_api_v1.3.1\import.php:19 Stack trace: #0 redcap_v15.0.15\ExternalModules\index.php(151): require() #1 redcap_v15.0.15\API\index.php(68): require_once('...') #2 api\index.php(9): include(...') #3 {main} thrown
File: modules\data_quality_api_v1.3.1\import.php
Line: 19
An unknown error occurred. Please check your API parameters.
This is due to the change of namespace.
A fix could be adding:
// import.php
use \UserRights;
use \Project;
use \RestUtility;