# Portal

**URL:** <https://community.open-emr.org/t/portal/9858>\
**Category:** OpenEMR Development\
**Created:** [April 2, 2018, 6:58pm UTC](https://community.open-emr.org/t/portal/9858 "2018-04-02T18:58:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmagauran](https://community.open-emr.org/user_avatar/community.open-emr.org/rmagauran/32/11435_2.png) [@rmagauran](https://community.open-emr.org/u/rmagauran)\
**Post date:** [April 2, 2018, 6:58pm UTC](https://community.open-emr.org/t/portal/9858/1 "2018-04-02T18:58:46Z")

</div>

Is the Portal feature for patient self registration going to be part of 5.0.1?  
The code in the dev tip branch is giving some errors so I presume it is still in development?

eg. for Step 2 “Profile” I get:

`The requested URL /openemr/portal/patient/patientdata was not found on this server.`

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [April 2, 2018, 8:13pm UTC](https://community.open-emr.org/t/portal/9858/2 "2018-04-02T20:13:46Z")

</div>

Hi Ray,  
Nope this was working. May fail if email notification is not set up but this error is a rest request and looks alright except i’d expect to see the domain. Try going to Administration-\>Globals-\>Portal-\>Portal Uses Server Base Path (internal) and toggle tick(default is unchecked). Also, is this on our demo? Or what is your setup.

---

<div class="post-metadata">

**Author:** ![rmagauran](https://community.open-emr.org/user_avatar/community.open-emr.org/rmagauran/32/11435_2.png) [@rmagauran](https://community.open-emr.org/u/rmagauran)\
**Post date:** [April 3, 2018, 12:08am UTC](https://community.open-emr.org/t/portal/9858/3 "2018-04-03T00:08:52Z")

</div>

I just tried it again with the Portal Uses Server Base Path (internal) unchecked.  
It was checked. Same response at Step 2.  
Interestingly, I can continue the process and enter an insurance.  
Then at Step 4 “Send Request”, I get a javascript error:

'TypeError: document.getElementById(…).contentWindow.page is undefined register.php:143:13  
[https://example.com/openemr/portal/account/register.php:143:13](https://example.com/openemr/portal/account/register.php:143:13)  
dispatch [https://example.com/openemr/public/assets/jquery-min-3-1-1/index.js:3:10263](https://example.com/openemr/public/assets/jquery-min-3-1-1/index.js:3:10263)  
add/q.handle [https://example.com/openemr/public/assets/jquery-min-3-1-1/index.js:3:8325`](https://example.com/openemr/public/assets/jquery-min-3-1-1/index.js:3:8325%60)

This is my production server, Ubuntu 17.10, Apache 2.4, PHP 7.1.  
Permissions for the /var/www/openemr/portal/patient/files = 644 www-data:www-data.

---

<div class="post-metadata">

**Author:** ![rmagauran](https://community.open-emr.org/user_avatar/community.open-emr.org/rmagauran/32/11435_2.png) [@rmagauran](https://community.open-emr.org/u/rmagauran)\
**Post date:** [April 3, 2018, 1:12pm UTC](https://community.open-emr.org/t/portal/9858/4 "2018-04-03T13:12:20Z")

</div>

More info:

When I load the self-registration page, I get a 404 error for :

/openemr/portal/patient/patientdata?pid=0&register=true

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [April 3, 2018, 1:44pm UTC](https://community.open-emr.org/t/portal/9858/5 "2018-04-03T13:44:41Z")

</div>

> [@rmagauran](#):
>
> /openemr/portal/patient/patientdata?pid=0&register=true

This is valid uri but where is the domain. Is this from console error? Also, have you tried reinstall of portal directory with latest. Relative path’ing was an issue but was addressed few months ago. I’ve tested ubuntu 14.04, 16.04 and windows 10 but not 17. Also tested through php 7.1. Can you log into portal and access profile?

---

<div class="post-metadata">

**Author:** ![geromoss](https://community.open-emr.org/user_avatar/community.open-emr.org/geromoss/32/12151_2.png) [@geromoss](https://community.open-emr.org/u/geromoss)\
**Post date:** [December 17, 2018, 3:38pm UTC](https://community.open-emr.org/t/portal/9858/6 "2018-12-17T15:38:17Z")

</div>

i have the same problem for patient self registration, do you can help me to resolve?! because I have the same problema like @rmagauran but I have installed server Amazon Linux server 2 AIM2  
I send you a screen capture of problem from mi site thank you  
|690x458

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 17, 2018, 4:05pm UTC](https://community.open-emr.org/t/portal/9858/7 "2018-12-17T16:05:47Z")

</div>

I’ve just retested and works okay for me. Have you installed 5.0.1 patches? Check here: [https://www.open-emr.org/wiki/index.php/OpenEMR\_Patches](https://www.open-emr.org/wiki/index.php/OpenEMR_Patches) and be careful if you have custom code. The files for portal are what you need so just use them if you need to. Just let me know what patch version you are on now if any for others info.

---

<div class="post-metadata">

**Author:** ![geromoss](https://community.open-emr.org/user_avatar/community.open-emr.org/geromoss/32/12151_2.png) [@geromoss](https://community.open-emr.org/u/geromoss)\
**Post date:** [December 18, 2018, 2:03pm UTC](https://community.open-emr.org/t/portal/9858/8 "2018-12-18T14:03:37Z")

</div>

hi @sjpadgett i follow your advices , I installed patch for 5.0.1 but the problem still there

 ![](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/6/623451b775283df4939bbd45dcd558bb4a3811fa.png)  
i uploaded a small videos showing the problem  
–[https://drive.google.com/file/d/16jAg\_HEZcdotit-Md2sawTNIy-PMe0bu/view?usp=sharing](https://drive.google.com/file/d/16jAg_HEZcdotit-Md2sawTNIy-PMe0bu/view?usp=sharing)

http://sendvid.com/rrv2ozro

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 4:04pm UTC](https://community.open-emr.org/t/portal/9858/9 "2018-12-18T16:04:56Z")

</div>

Has to be something with your install. Check file permissions and user:group permissions in openemr/portal/patient directory if on ubuntu. Check browser console to see if the fetch returns a 404 or 500 error. Check php error logs for clues.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 4:18pm UTC](https://community.open-emr.org/t/portal/9858/10 "2018-12-18T16:18:30Z")

</div>

Ray if I remember correctly, you got this to work when you reinstalled. Is that correct?

---

<div class="post-metadata">

**Author:** ![geromoss](https://community.open-emr.org/user_avatar/community.open-emr.org/geromoss/32/12151_2.png) [@geromoss](https://community.open-emr.org/u/geromoss)\
**Post date:** [December 18, 2018, 4:38pm UTC](https://community.open-emr.org/t/portal/9858/11 "2018-12-18T16:38:56Z")

</div>

I saw portal folder, the folder has permission 775 and ec2-user and apache group  
but… the files inside the folder “Portal” has diferentes permission and groups, some files has permission 644 with ec2-user and apache group, and other files has permission 664 with ec2-user and groups ec2-user, is it correct ?  
I’ll send you a screen capture

 ![](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/c/ce070c8ac19cd6eb4a77e22677e197b355656095.png)

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 5:03pm UTC](https://community.open-emr.org/t/portal/9858/12 "2018-12-18T17:03:06Z")

</div>

I assume this is Alpine in a docker container. No matter but i’m not sure what is in the apache group so suggest doing a recursive chown -R ec2-user:ec2-user on portal directory.  
edit: are you able to log in as portal patient?

---

<div class="post-metadata">

**Author:** ![rmagauran](https://community.open-emr.org/user_avatar/community.open-emr.org/rmagauran/32/11435_2.png) [@rmagauran](https://community.open-emr.org/u/rmagauran)\
**Post date:** [December 18, 2018, 6:45pm UTC](https://community.open-emr.org/t/portal/9858/13 "2018-12-18T18:45:51Z")

</div>

Still not working but I have not loaded the latest files.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 6:58pm UTC](https://community.open-emr.org/t/portal/9858/14 "2018-12-18T18:58:49Z")

</div>

Okay thanks. I don’t understand what is missing. All my testing works okay so i’ll try test some more.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [December 18, 2018, 7:10pm UTC](https://community.open-emr.org/t/portal/9858/15 "2018-12-18T19:10:54Z")

</div>

hi Jerry, if I remember from another thread that the web server doesn’t like the leading /openemr in the path name?

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 7:23pm UTC](https://community.open-emr.org/t/portal/9858/16 "2018-12-18T19:23:29Z")

</div>

That’s true but i’m pretty sure one of the patches adds a url test for making sure web\_root is properly parsed for a relative endpoint. The browser should take care of the rest of inserting correct domain. @geromoss Really do need the browser console error to know for sure.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 7:35pm UTC](https://community.open-emr.org/t/portal/9858/17 "2018-12-18T19:35:32Z")

</div>

I just retested again against all our demos in demo farm including Alpine 3.7. All are okay. @geromoss Can you e-mail me your sites portal url so I can test myself? [sjpadgett@gmail.com](mailto:sjpadgett@gmail.com)

---

<div class="post-metadata">

**Author:** ![geromoss](https://community.open-emr.org/user_avatar/community.open-emr.org/geromoss/32/12151_2.png) [@geromoss](https://community.open-emr.org/u/geromoss)\
**Post date:** [December 18, 2018, 8:13pm UTC](https://community.open-emr.org/t/portal/9858/18 "2018-12-18T20:13:04Z")

</div>

i changed permission on Portal directory for ec2-user:ec2-user and still the same problem, i’m not using Alpine neither Docker container, just downloaded packed from oficial website OpenEMR version [Download openemr-5.0.1.tar.gz (OpenEMR)](http://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.1.6/openemr-5.0.1.tar.gz)  
thank you @sjpadgett i send you an email with the link

 ![](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/d/d39d93c7739a70d2d983e72d57ea3390453637f7.png)

---

<div class="post-metadata">

**Author:** ![rmagauran](https://community.open-emr.org/user_avatar/community.open-emr.org/rmagauran/32/11435_2.png) [@rmagauran](https://community.open-emr.org/u/rmagauran)\
**Post date:** [December 18, 2018, 8:18pm UTC](https://community.open-emr.org/t/portal/9858/19 "2018-12-18T20:18:02Z")

</div>

I used a second browser to avoid session conflicts and it still failed. However I noticed in openemr, when I reset the browser credentials for my test user, the **username in the pop-up** was different than the username in the demographics for **CMS Portal Login** for this patient. When I changed this CMS Portal Login value to match the one autocreated (?), I was able to get it to work… Does that make sense?

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2018, 8:48pm UTC](https://community.open-emr.org/t/portal/9858/20 "2018-12-18T20:48:54Z")

</div>

I do know that only one portal should be enabled. I’ll check code but maybe i’m grabbing the wrong credentials. Anyway this is a clue, thanks. @geromoss Have you got more than one portal enabled in Globals?

[Next page](https://community.open-emr.org/t/portal/9858.md?page=2)
