RedHatOfficial / openemr-kube

OpenShift/Kube deployment info for OpenEMR (https://www.open-emr.org/)
11 stars 13 forks source link

Site ID is missing from session data! #32

Open ryannix123 opened 4 years ago

ryannix123 commented 4 years ago

@isimluk @jeffcpullen There seems to be something with the deployment, which works perfectly on OKD 3.11, which is causing OpenEMR to have a session bug.

"Site ID is missing from session data!" is all I get when I log in for the first time, and I can't get past the error.

https://community.open-emr.org/t/site-id-is-missing-from-session-data-error-from-remote-login/9162/2

ryannix123 commented 4 years ago

The ;session.save_path = "/var/lib/php/sessions"is commented out in the php.ini file in the Docker image. I'll make a pull request upstream to the OpenEMR project to uncomment the session.save_path = "/tmp"

ryannix123 commented 4 years ago

@isimluk @jeffcpullen

Good morning.

I fixed the session ID bug and updated the Docker file so that OpenEMR-Kube deploys correctly using PHP 7.3. https://raw.githubusercontent.com/ryannix123/OpenEMR-on-OpenShift/master/Dockerfile

We needed to add RUN chmod -R 777 /var/lib/php/session to write to that directory.

I'll make a pull-request very soon.