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
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.
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
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
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.
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.