Patient Portal Issues


I’m testing to enable the patient portal … I enabled all the required steps (as in the below links) … once I try to access using the patient’s account, I am forced to reset the password, when trying to change it a pop-up appears (Log In Name is unavailable. Try again!) when click on ok and change the password … i receive the error after trying to login with the new pwd

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 44

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:44 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 44

Can someone please help?

many thanks

Hi @JoeKh - welcome to the forum; I hope you find what you need here.
I notice that your post is missing a few items of useful information.

  • Which version of OpenEMR are you using? Are its patches up to date?
  • Your system is evidently MS Windows but which version?
  • Which pages of instructions did you use to setup the portal? The links didn’t appear in your post.
  • The portal setup is very particular about all the required elements being present. I have seen some older OpenEMRs throw errors if the patient does not have both contact and trusted email in their demographics. And the email is what is used as both the password and the login (though what is called the ‘username’ is not in fact used to log into the portal. Confusing.)
  • Are you using the SMTP capabilities for email confirmation, and the Captcha also? Do those logins function independently?

Well- rather than asking a long list of questions I’ll just wait for some answers. :slight_smile:
Best- Harley

1 Like

Hi JoeKh,

Please correct your directory name to
I think this will help you to fix the issue.
If the issue is still not fixed,share me the file name and I’ll try to provide some other solutions.


Hi Param,

where should I change the directory? in the verify_session file?

here is the file content:
// All of the common intialization steps for the get_* patient portal functions are now in this single include.

//continue session
// Will start the (patient) portal OpenEMR session/cookie.
require_once(DIR . “/…/src/Common/Session/SessionUtil.php”);

//landing page definition – where to go if something goes wrong
$landingpage = “index.php?site=” . urlencode($_SESSION[‘site_id’] ?? null);

// kick out if patient not authenticated
if (isset($_SESSION[‘pid’]) && isset($_SESSION[‘patient_portal_onsite_two’])) {
$pid = $_SESSION[‘pid’];
} else {
header('Location: ’ . $landingpage . ‘&w’);


$ignoreAuth_onsite_portal = true; // ignore the standard authentication for a regular OpenEMR user
require_once(dirname(_ file _) . ‘./…/interface/globals.php’);

Many thanks

Hi Harley,
Thank you for your kind reply.

I am installing OpenEMR v7 on a virtual win10 20H2 machine (the most recent stable version from the website)

I followed the instructions to enable the portal from (admin - global settings - portal → enable Patient Portal), in-addition to allow the settings for each patient in demographics - choices + contacts

I am not setting up SMTP or captcha

Appreciates your support .

Kind Regards,

Hi @JoeKh -
Ah, that explains a lot.
Let me refer you to the OpenEMR wiki, a deep source of knowledge and wisdom. Or at least good information :slight_smile:

Enabling, configuring and activating the portal is rather more involved than just entering the global values. The process is written up in the OpenEMR wiki in these pages:

Here’s an overview of OpenEMR’s patient portal.

Here are specific portal configuration instructions

… which continues with the steps required to give a patient portal access's_portal_access_-_v6.0

From what you say you have evidently done some of these steps but have missed several. Do feel free to come back to the forum with any questions you may have.

Best- Harley

1 Like

Please recheck your code with the file I share portal/get_patient_info.php. If everything matches,your issue will be fixed.
If you have any doubts please refer to this url
get_patient_info.php (11.3 KB)