Attempting to add a list item on an active (in encounter) drop-down list from the form causes authentication error


(Ralf Lukner MD PhD) #1

Situation
Attempting to add a list item on an active (in an encounter) drop-down list from the form causes an authentication error. This is on a macOS Chrome session over HTTPS.

OpenEMR Version
I’m using OpenEMR version 5.0.1(7)

Browser:
I’m using: macOS Chrome 75.0.3770.100 (Official Build) (64-bit)

Operating System
I’m using: macOS Mojave 10.14.1

Logs
Did you check the logs? Yes.
Was there anything pertinent in them? No. The logs are empty.


(Brady Miller) #2

I’ll bet this is a csrf prevention error (this was added in some parts of 5.0.1(7)), but there should definitely also be a message going to the php error log. Are we sure that the php error log is not somewhere else?
Also, what is the exact string that you see on the screen?
-brady


(Ralf Lukner MD PhD) #3

No error message there. Logging appears to be broken on my OpenEMR installation. I did an exhaustive search for error.log files and there is only one.

/var/www/localhost/htdocs/openemr # ls -l /var/log/apache2/
total 4
-rw-r--r--    1 root     wheel            0 Jul  7 02:00 access.log
-rw-r--r--    1 root     wheel            0 Jul  7 02:00 error.log
drwxr-sr-x    2 root     wheel         4096 Jul  7 15:32 old_logs
-rw-r--r--    1 root     wheel            0 Mar 19 22:47 php_errors.log
-rw-r--r--    1 root     wheel            0 Jun  3  2018 ssl_access.log
-rw-r--r--    1 root     wheel            0 Jul  7 02:00 ssl_error.log
-rw-r--r--    1 root     wheel            0 Jun  3  2018 ssl_request.log
/var/www/localhost/htdocs/openemr # find / -name error.log
/var/log/apache2/error.log

The string that appeared was “Authentication Error” - I haven’t run into it since, but I am not trying to.


(Brady Miller) #4

Hi @Ralf_Lukner
To find your error log, recommend making a quick dummy php script with phpinfo() command in it. That should show the actual log file that is being used.
https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page