Alert Error: Portal Audits - Document Actions: Documents won't open

I am using OpenEMR 7.0.2 (AWS Express Install)

When I click Portal Audits, Documents selected from the Document Action do not open, instead sjows the error:

Alert
{“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 301”,“errors”

Hi @mdotcoder fix will be in patch 2

1 Like

Thank you so much @stephenwaite ! Fixed, it worked!

1 Like
{"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}"]}

This error appears when in portal audit upon when clicking Chart to Onsite Portal Reviewed.

1 Like