Situation
I have not been able to access the patient portal after logging in as a patient at all. My process is as follows:
After performing a fresh install of OpenEMR, I create a new patient with only the required information and a single email address with Allow Patient Portal set to YES. The portal configuration in Admin > Config > Portal is set to Enable Patient Portal = YES, Patient Portal Site Address = http://localhost/openemr/portal
and Enforce E-Mail in Portal Log On Dialog = NO. I then set up the new patient’s credentials, copying the username and password I’m given. I can log in as that patient on the portal, where I’m prompted to change the username (must be 12 characters or greater, the generated username is not) and password. After doing so, the following PHP errors are shown on a blank page, and these errors will now show immediately upon logging in as this patient:
Warning: require_once(C:\xampp\htdocs\openemr\portal./../interface/globals.php): Failed to open stream: Permission denied in C:\xampp\htdocs\openemr\portal\verify_session.php on line 64
Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\openemr\portal./../interface/globals.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\openemr\portal\verify_session.php:64 Stack trace: #0 C:\xampp\htdocs\openemr\portal\home.php(19): require_once() #1 {main} thrown in C:\xampp\htdocs\openemr\portal\verify_session.php on line 64
I would appreciate if I could get some advice on these errors, as they make it impossible for me to access the patient portal as a developer and see how it works.
OpenEMR Version
I’ve used the Stable Production Release (Version 7.0.1) and the latest version from the repository (after running the For Developers commands), both result in the same errors.
Browser:
I’m using Firefox 118.0.2 (64-bit).
Operating System
I’m using Microsoft Windows 10 Home version 10.0.19045 Build 19045. OpenEMR is running on an Apache server with a MySQL database created by XAMPP for Windows using PHP 8.2.4.
Search
I have not been able to find any other forum topics that reference this particular permission denied error.
Logs
Nothing exists in the OpenEMR database logs that is related to the error encountered.