openEMR v7.0.2(1), hosted by xampp in windows. Edge for openEMR, chrome for patient portal
Hi @sjpadgett
I am getting an error when performing the “Chart to Onsite Portal Reviewed” action in the portal dashboard, for documents that contain a patient signature, where the signature came from a {PatientSignature} block in a document template.
When reviewing the document, I do see the patient’s signature displayed. Doing the Chart action does cause the document to show in the Documents | Onsite Portal | Reviewed list, but the pdf shows a broken link icon instead of the signature. After performing the Chart action, and clicking Done, the document continues to show in the Onsite Portal Activities page, with pending action = review, and status = waiting. The same can be found looking at the associated record in the onsite_portal_activity table
The error that shows (which is hard to capture, since it disappears quickly) is shown below
Nothing is getting added to php_errors.log
Thanks for pondering
– Hank
{“success”:false,“message”:“Style attribute ‘*’ is not supported (for information on implementing this, see the support forums) in CSSDefinition.php at line 534”,“errors”:,“stackTrace”:[“0 [internal function]: ExceptionThrower::HandleError(512, ‘Style attribute…’, ‘C:\\xampp\\htdocs…’, 534)”,“1 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\CSSDefinition.php(534): trigger_error(‘Style attribute…’, 512)”,“2 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\CSSDefinition.php(399): HTMLPurifier_CSSDefinition->setupConfigStuff(Object(HTMLPurifier_Config))”,“3 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Definition.php(51): HTMLPurifier_CSSDefinition->doSetup(Object(HTMLPurifier_Config))”,“4 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Config.php(515): HTMLPurifier_Definition->setup(Object(HTMLPurifier_Config))”,“5 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Config.php(434): HTMLPurifier_Config->getDefinition(‘CSS’, false, false)”,“6 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\AttrDef\CSS.php(27): HTMLPurifier_Config->getCSSDefinition()”,“7 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\AttrValidator.php(96): HTMLPurifier_AttrDef_CSS->validate(‘cursor: default…’, Object(HTMLPurifier_Config), Object(HTMLPurifier_Context))”,“8 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Strategy\RemoveForeignElements.php(89): HTMLPurifier_AttrValidator->validateToken(Object(HTMLPurifier_Token_Empty), Object(HTMLPurifier_Config), Object(HTMLPurifier_Context))”,“9 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Strategy\Composite.php(24): HTMLPurifier_Strategy_RemoveForeignElements->execute(Array, Object(HTMLPurifier_Config), Object(HTMLPurifier_Context))”,“10 C:\xampp\htdocs\openemr\vendor\ezyang\htmlpurifier\library\HTMLPurifier.php(211): HTMLPurifier_Strategy_Composite->execute(Array, Object(HTMLPurifier_Config), Object(HTMLPurifier_Context))”,“11 C:\xampp\htdocs\openemr\portal\patient\libs\Controller\OnsiteDocumentController.php(343): HTMLPurifier->purify(‘hello. how are …’)”,“12 C:\xampp\htdocs\openemr\portal\patient\fwk\libs\verysimple\Phreeze\Dispatcher.php(172): OnsiteDocumentController->Update()”,“13 C:\xampp\htdocs\openemr\portal\patient\index.php(59): Dispatcher::Dispatch(Object(Phreezer), Object(SavantRenderEngine), ‘’, NULL, Object(GenericRouter))”,“14 {main}”]}