I am working on an upgrade from 4.2 to 5.0.2. Windows server and PHP 7.1 (x64)
When I try to access a scanned doc using the 5.0.2 code from the contributed library, I get an error "ERROR: The following variable contains invalid characters: " both as a display and in the error log. No program or variable is shown.
I thought it might be related to the way the database structure was built because I may have been using the scanned documents code that was earlier than 4.2. I built a fresh, new version of OpenEMR on a different server with PHP 7.3. When I tried to add a scanned document, I got the same error, so the problem doesn’t appear to be related to the older version or database.
Also, the new installation has tons of undefined index and variable notices in the error log