OpenEMR 7.0.3 (4)
running Ubuntu 20.04.06 LTS (provided by the CloudFormation template)
AWS EC2 instance in us-east-1
I’ve installed OpenEMR 7.0.3 (4) on AWS using Cloud Express template via AWS CloudFormation. OpenEMR is working on sub.domain.org with HTTPS workings properly. Patient portal is up and running, with new patient registration working from the portal itself.
After the test patient signs a form (such as HIPAA), there is a proper portal audit alert to the admin. However, when the admin chooses Chart to Onsite Portal Reviewed, it generates an error (see below) and does not resolve to Reviewed.
My error seems similar to another post, but when I checked DocumentTemplateRender.php - the patch code is there in my install version.
{“success”:false,“message”:“Directory /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer not writable, please alter file permissions in Serializer.php at line 302”,“errors”:,“stackTrace”:[“0 [internal function]: ExceptionThrower::HandleError()”,“1 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php(302): trigger_error()”,“2 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php(238): HTMLPurifier_DefinitionCache_Serializer->_testPermissions()”,“3 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php(125): HTMLPurifier_DefinitionCache_Serializer->_prepareDir()”,“4 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php(108): HTMLPurifier_DefinitionCache_Serializer->cleanup()”,“5 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php(72): HTMLPurifier_DefinitionCache_Decorator->cleanup()”,“6 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php(505): HTMLPurifier_DefinitionCache_Decorator_Cleanup->get()”,“7 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php(415): HTMLPurifier_Config->getDefinition()”,“8 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php(74): HTMLPurifier_Config->getHTMLDefinition()”,“9 /var/www/localhost/htdocs/openemr/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php(158): HTMLPurifier_Generator->__construct()”,“10 /var/www/localhost/htdocs/openemr/portal/patient/libs/Controller/OnsiteDocumentController.php(356): HTMLPurifier->purify()”,“11 /var/www/localhost/htdocs/openemr/portal/patient/fwk/libs/verysimple/Phreeze/Dispatcher.php(172): OnsiteDocumentController->Update()”,“12 /var/www/localhost/htdocs/openemr/portal/patient/index.php(54): Dispatcher::Dispatch()”,“13 {main}”]}