Error when pulling up docs in Visit History tab

Situation
When viewing documents on the Visit History tab, we get the following error: Unable to load controller DocId , please check the first argument supplied in the URL and try again

OpenEMR Version
Latest. V8, patch 3.

Browser:
I’m using: Chrome

Operating System
I’m using: MacOS Tahoe 26.3.1. Staff has repro’d in Windows 11.

Search
Yes

Logs
```[07-Apr-2026 09:13:47 America/Denver] PHP Warning: include_once(/home/zzz/public_html/emr/controllers/C_DocId.class.php): Failed to open stream: No such file or directory in /home/zzz/public_html/emr/library/classes/Controller.class.php on line 74
[07-Apr-2026 09:13:47 America/Denver] PHP Warning: include_once(): Failed opening ‘/home/zzz/public_html/emr/controllers/C_DocId.class.php’ for inclusion (include_path=‘/home/zzz/public_html/emr/vendor/pear/archive_tar:/home/zzz/public_html/emr/vendor/pear/console_getopt:/home/zzz/public_html/emr/vendor/pear/pear-core-minimal/src:/home/zzz/public_html/emr/vendor/pear/pear_exception:.:/opt/cpanel/ea-php82/root/usr/share/pear’) in /home/zzz/public_html/emr/library/classes/Controller.class.php on line 74```

hi @midder, working on a fix here.

Thanks @stephenwaite

hi @midder, try replacing your interface/patient_file/history/encounters.php with this patched version. It’s going to be fixed more properly in the next release but this should tide you over until then.

1 Like

Looks like that works. Thanks again @stephenwaite !