Clinical documents cannot be uploaded in the patient portal

Situation
When the user clicks the upload button, the screen disappears for a split second and then the instruction screen reappears.

OpenEMR Version
I’m using OpenEMR version 7.03

Browser:
I’m using: Google Chrome

Operating System
I’m using: Ubuntu 24

Search
Did you search the forum for similar questions?

Logs
[Mon Oct 06 10:29:29.684537 2025] [php:warn] [pid 73057] [client 172.31.9.114:41814] PHP Warning: Undefined global variable $allow_portal_chat in /var/www/html/qa_tminabox/qaemr/portal/home.php on line 362, referer: Patient Portal Login
[Mon Oct 06 10:47:40.944412 2025] [php:warn] [pid 73805] [client 172.31.9.114:47372] PHP Warning: Undefined global variable $allow_portal_chat in /var/www/html/qa_tminabox/qaemr/portal/home.php on line 362, referer: https://qaemr.tminabox.com/portal/patient/onsitedocuments?pid=987677
ubuntu@ip-172-31-6-23:/var/log/apache2$