Patient Signature is missing

Situation
Describe your problem here
We just recently migrate our staging site (dev) from a webhosting company to AWS everything is working fine on the first 2 weeks, Just now we noticed that on the data privacy form where patient sign there signature after it was converted to pdf the signature is missing. attached file.

checking on the logs i see 3 different PHP WARNING kept on pooping up :

PHP Warning: Undefined array key “audit_delete” in /var/www/xxxxxx.com/portal/lib/doc_lib.php on line 75

PHP Warning: Undefined array key “category_id” in /var/www/xxxxxx.com/sites/default/documents/smarty/main/c2da090147f03caf90b90a115b040c4869c57ad0_0.file.general_list.html.php on line 70

PHP Warning: Attempt to read property “value” on null in /var/www/xxxxxx.com/sites/default/documents/smarty/main/c2da090147f03caf90b90a115b040c4869c57ad0_0.file.general_list.html.php on line 70

Does anyone encounter this issue?

OpenEMR Version
I’m using OpenEMR version 7.0.2

Browser:
I’m using:

Operating System
AWS Ubuntu

Search
Did you search the forum for similar questions?

Logs
Did you check the logs?
Was there anything pertinent in them?
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All

Can you check the permissions of the actual signature file

Is this located in the documents folder?

i’m using ubuntu as the user and this user is already added in the www-data group

We do not use this feature. I used the demo for illustration

where do i check the actual permission?

Hi guys,
The signature is not stored as a file. They are stored as a master for each user or patient in the signature table.
When used in a form/document the edited or retrieved image is placed in the form as a base64 data URL.

@casper I have seen issues with some linux, maybe it was AWS, generating a valid image dataURL.

I suggest when saving image in form, check for console errors on insert or doc save. I believe a console log is sent for image create but don’t remember.

Hi @sjpadgett thanks for this information, the issue is when it was converted to a pdf file the signature is replace by red x, guessing that when it was converted it cant retrieve the image that was temporary stored in base64, is it a permission related issue? If yes can do i need to change? This was working before 2 weeks after we migrate the files from another hosting to aws server.

How about if you open in a print dialog?

Hi @sjpadgett where can i find the print dialog, ?

Are you submitting the doc for review? You can then open in audit and print or save to pdf/chart.

The print option is not visible on my end, i also check the current demo its also not visible.

Hi @sjpadgett , i try to check on the browser console for any error during converting to pdf. and this is what i found.

i get 2 warning :

Source map error: Error: JSON.parse: unterminated string at line 1 column 504948 of the JSON data
Stack in the worker:parseSourceMapInput@resource://devtools/client/shared/vendor/source-map/lib/util.js:163:15
_factory@resource://devtools/client/shared/vendor/source-map/lib/source-map-consumer.js:1066:22
SourceMapConsumer@resource://devtools/client/shared/vendor/source-map/lib/source-map-consumer.js:26:12
_fetch@resource://devtools/client/shared/source-map-loader/utils/fetchSourceMap.js:83:19

Resource URL: https://xxxxx.com/public/themes/style_cobalt_blue.css?v=78
Source Map URL: data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInV0aWxpdGllcy9kZWZhdWx0X3ZhcmlhYmxlcy5zY3NzIiwic3R5bGVfY29iYWx0X2JsdWUuY3NzIiwiLi4vLi4vLi4vcHVibGljL2Fzc2V0cy9ib290c3RyYXAvc2Nzcy9fcHJvZ3Jlc3Muc2NzcyIsIi4uLy4uLy4uL3B1YmxpYy9hc3NldHMvYm9vdHN0cmFwL3Njc3MvX3NwaW5uZXJzLnNjc3MiLCIuLi8uLi8uLi9wdWJsaWMvYXNzZXRzL2Jvb3RzdHJhcC9zY3NzL19yb290LnNjc3MiLCIuLi8uLi8uLi9wdWJsaWMvYXNzZ…

Source map error: Error: JSON.parse: unterminated string at line 1 column 504948 of the JSON data
Stack in the worker:parseSourceMapInput@resource://devtools/client/shared/vendor/source-map/lib/util.js:163:15
_factory@resource://devtools/client/shared/vendor/source-map/lib/source-map-consumer.js:1066:22
SourceMapConsumer@resource://devtools/client/shared/vendor/source-map/lib/source-map-consumer.js:26:12
_fetch@resource://devtools/client/shared/source-map-loader/utils/fetchSourceMap.js:83:19

Resource URL: https://xxxxx.com/public/themes/style_cobalt_blue.css?v=78
Source Map URL: data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInV0aWxpdGllcy9kZWZhdWx0X3ZhcmlhYmxlcy5zY3NzIiwic3R5bGVfY29iYWx0X2JsdWUuY3NzIiwiLi4vLi4vLi4vcHVibGljL2Fzc2V0cy9ib290c3RyYXAvc2Nzcy9fcHJvZ3Jlc3Muc2NzcyIsIi4uLy4uLy4uL3B1YmxpYy9hc3NldHMvYm9vdHN0cmFwL3Njc3MvX3NwaW5uZXJzLnNjc3MiLCIuLi8uLi8uLi9wdWJsaWMvYXNzZXRzL2Jvb3RzdHJhcC9zY3NzL19yb290LnNjc3MiLCIuLi8uLi8uLi9wdWJsaWMvYXNzZ…

And a block error for : https://xxxxx.com/interface/patient_file/summary/demographics.php with error : ns binding aborted

In the Apache logs lots of this 4 types of warning :

[Tue Feb 25 07:59:58.227853 2025] [php:warn] [pid 379220] [client xxxxx] PHP Warning: Undefined array key “data_type” in /var/www/xxxxxx.com/public_html/interface/main/finder/dynamic_finder.php on line 413, referer: https://xxxxx.com/interface/main/tabs/main.php?token_main=5fT0ypKLqxfwELpn9PUB8BOhAFYe1860W4qutUr3

[Tue Feb 25 08:00:10.070333 2025] [php:warn] [pid 379096] [client xxxxx] PHP Warning: Undefined array key “category_id” in /var/www/xxxxx.com/public_html/sites/default/documents/smarty/main/c2da090147f03caf90b90a115b040c4869c57ad0_0.file.general_list.html.php on line 70, referer: https://xxxxxx.com/interface/patient_file/summary/demographics.php?set_pid=72029

[Tue Feb 25 08:03:25.937869 2025] [php:warn] [pid 379094] [client xxxxx] PHP Warning: Undefined array key “category_id” in /var/www/xxxxxx.com/public_html/sites/default/documents/smarty/main/c2da090147f03caf90b90a115b040c4869c57ad0_0.file.general_list.html.php on line 70, referer: https://xxxxxx.com/controller.php?document&upload&patient_id=72029&parent_id=200438&referer_flag=0

[Tue Feb 25 08:03:25.937919 2025] [php:warn] [pid 379094] [client xxxxx] PHP Warning: Attempt to read property “value” on null in /var/www/xxxxxx.com/public_html/sites/default/documents/smarty/main/c2da090147f03caf90b90a115b040c4869c57ad0_0.file.general_list.html.php on line 70, referer: https://xxxxxx.com/controller.php?document&upload&patient_id=72029&parent_id=200438&referer_flag=0

You have to submit the doc in portal

Then log out of portal and into OpenEMR the go to Miscellaneous > Portal Dashboard then click the Review Audits button and select document from portal.

Don’t worry about PHP warnings. I have a 2pm call so will pick this later. Here is my print dialog.

Hi @sjpadgett,

This is what i only see :

Thank you @sjpadgett

1 Like

You can’t be logged into both portal and openemr in same user agent(browser). It messes with the use flags.

No we are not using the portal, signing the privacy policy for the patient is being done in the EMR, using physician role, using the this flow : Medical Record Dashboard of the Patient → Documents → Privacy Policy.