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
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.
Best- Harley
Please correct your directory name to
C:\xampp\htdocs\openemr\interface\globals.php
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.
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”);
OpenEMR\Common\Session\SessionUtil::portalSessionStart();
//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 {
OpenEMR\Common\Session\SessionUtil::portalSessionCookieDestroy();
header('Location: ’ . $landingpage . ‘&w’);
exit;
}
//
$ignoreAuth_onsite_portal = true; // ignore the standard authentication for a regular OpenEMR user
require_once(dirname(_ file _) . ‘./…/interface/globals.php’);
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
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:
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.