Unable to Chart to Patient Portal Documents

Situation
@sjpadgett, unable to chart to Patient Portal Documents

OpenEMR Version
I’m using OpenEMR version 7.0.2

Logs
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Uncaught TypeError: Cannot read properties of undefined (reading 'replace')

First they stray ‘?>’ is a hint you’re behind in patches.
Second look a error log and check if you have turned of deprecated error reporting.

And lastly, this works okay for me on patched up 702 version.
Still report error log for me where I may need to address if a deprecated error.

You are correct, was behind in patches.

Depracated error, you mean PHP.ini?